X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c7a21e6294f1eb905ace3d717f9dcfb4d4c39f0b..fd0ca9211847806adb2e97c0ae78e9312ef89ca1:/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..2d804e1a53 100644 --- a/apps/workbench/app/models/authorized_key.rb +++ b/apps/workbench/app/models/authorized_key.rb @@ -1,7 +1,7 @@ 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