X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/92cb77cd08bbcc8ca0c0eab3aa5446efd43fb69f..415cb3b63e8cfafd4c6b92a8971a0cff74097337:/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 8f4d62c823..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 attr, *args + super end end + + def self.creatable? + false + end end