X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3173f909ce49d67a11ab2230cf09629f7e259b74..b80867f0ae046c907cbd208facf7f98bee5a4f85:/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 a56021682c..c018cc56b0 100644 --- a/apps/workbench/app/models/authorized_key.rb +++ b/apps/workbench/app/models/authorized_key.rb @@ -1,2 +1,9 @@ class AuthorizedKey < ArvadosBase + def attribute_editable?(attr) + if attr.to_s == 'authorized_user_uuid' + current_user and current_user.is_admin + else + super(attr) + end + end end