Merge branch 'master' into 3618-column-ordering
[arvados.git] / apps / workbench / app / models / authorized_key.rb
index 8f4d62c823bc1f17eb35689db4c0c970173eb57a..2d804e1a5345743957b71aa7389eb15ab223312c 100644 (file)
@@ -1,9 +1,9 @@
 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
 end