remove "add a new VM" button from non-admin VM index page
[arvados.git] / apps / workbench / app / models / virtual_machine.rb
index a6b845c4e7405016927ef0f0130fc8e5ae12a5b4..61b3b6b36173703a8a554b9e4083773dc0015788 100644 (file)
@@ -1,2 +1,5 @@
 class VirtualMachine < ArvadosBase
+  def self.creatable?
+    current_user.andand.is_admin
+  end
 end