X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b76f2e97b6f2efbe5e524776a6b6a53bbad43448..1c36703db22a4695f0a2aebaa3ffbd5d8d64997f:/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 62ee83238d..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) - if attr.to_s == 'authorized_user' - 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(attr) + super end end + + def self.creatable? + false + end end