X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/30d63b582ed093d235ae4a9efdeda5de1d4e2f24..69e9a3e41a8d381adc095718a73a8a99a7943a5a:/apps/workbench/app/models/authorized_key.rb diff --git a/apps/workbench/app/models/authorized_key.rb b/apps/workbench/app/models/authorized_key.rb index 724c996e4a..b0c2fa2f02 100644 --- a/apps/workbench/app/models/authorized_key.rb +++ b/apps/workbench/app/models/authorized_key.rb @@ -1,9 +1,13 @@ class AuthorizedKey < ArvadosBase - def attribute_editable? attr, *args - if attr.to_s == 'authorized_user_uuid' - current_user and current_user.is_admin + def attribute_editable?(attr, ever=nil) + if (attr.to_s == 'authorized_user_uuid') and (not ever) + current_user.andand.is_admin else super end end + + def self.creatable? + false + end end