projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4533: Consolidate database-reset tests. Fix up ensure/reload_routes! blocks.
[arvados.git]
/
services
/
api
/
lib
/
current_api_client.rb
diff --git
a/services/api/lib/current_api_client.rb
b/services/api/lib/current_api_client.rb
index eaf54da143008c208635828d7d9ff522040a8a92..9f78587eabe9de75e37f49268d508d832203ad46 100644
(file)
--- a/
services/api/lib/current_api_client.rb
+++ b/
services/api/lib/current_api_client.rb
@@
-108,10
+108,11
@@
module CurrentApiClient
if not $all_users_group
act_as_system_user do
ActiveRecord::Base.transaction do
if not $all_users_group
act_as_system_user do
ActiveRecord::Base.transaction do
- $
system
_group = Group.
+ $
all_users
_group = Group.
where(uuid: all_users_group_uuid).first_or_create do |g|
g.update_attributes(name: "All users",
where(uuid: all_users_group_uuid).first_or_create do |g|
g.update_attributes(name: "All users",
- description: "All users")
+ description: "All users",
+ group_class: "role")
end
end
end
end
end
end