Merge branch 'master' into 2798-go-keep-client
[arvados.git] / apps / workbench / app / models / authorized_key.rb
index a56021682cbc953ff145d23acbbef664cf59060c..c018cc56b04051a442b382c4546f9fea0e253bce 100644 (file)
@@ -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