closes #11840
[arvados.git] / apps / workbench / app / models / authorized_key.rb
index a56021682cbc953ff145d23acbbef664cf59060c..b0c2fa2f02d892d4e86578ff778045a3d8a7adcd 100644 (file)
@@ -1,2 +1,13 @@
 class AuthorizedKey < ArvadosBase
+  def attribute_editable?(attr, ever=nil)
+    if (attr.to_s == 'authorized_user_uuid') and (not ever)
+      current_user.andand.is_admin
+    else
+      super
+    end
+  end
+
+  def self.creatable?
+    false
+  end
 end