From bd89394a8113c38899c5218076702b1e8c7447cb Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Wed, 13 Sep 2017 15:59:57 -0400 Subject: [PATCH] 12032: Remove user_uuid special case from all_perms. Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- services/api/app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/app/models/user.rb b/services/api/app/models/user.rb index 022c4d58ba..f3ca75929f 100644 --- a/services/api/app/models/user.rb +++ b/services/api/app/models/user.rb @@ -161,7 +161,7 @@ class User < ArvadosModel # "name" arg is a query label that appears in logs: "all_group_permissions", ).rows.each do |user_uuid, group_uuid, max_p_val, trashed| - all_perms[user_uuid] ||= {user_uuid => {:read => true, :write => true, :manage => true}} + all_perms[user_uuid] ||= {} all_perms[user_uuid][group_uuid] = PERMS_FOR_VAL[max_p_val.to_i] end all_perms -- 2.30.2