X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/07a94c1d7f2fc3b0c18504c46de03abeec5da8fc..ed1acd6fd780467ba69998e76e28fda61beedc0f:/services/api/app/models/user.rb diff --git a/services/api/app/models/user.rb b/services/api/app/models/user.rb index eb181c3856..78ec7bea1e 100644 --- a/services/api/app/models/user.rb +++ b/services/api/app/models/user.rb @@ -166,8 +166,11 @@ class User < ArvadosModel WHERE user_uuid = $1 AND target_owner_uuid IS NOT NULL GROUP BY target_owner_uuid', + # "name" arg is a query label that appears in logs: "group_permissions for #{uuid}", - [[nil, uuid]]).rows.each do |group_uuid, max_p_val| + # "binds" arg is an array of [col_id, value] for '$1' vars: + [[nil, uuid]], + ).rows.each do |group_uuid, max_p_val| group_perms[group_uuid] = PERMS_FOR_VAL[max_p_val.to_i] end Rails.cache.write "groups_for_user_#{self.uuid}", group_perms