11501: Simplified helper method call. Changed wording of run time description.
[arvados.git] / apps / workbench / app / models / group.rb
index a91b729c86d1ba12220a5813da75ba2b7a44172f..0d358603a830b821a7f4c20874d01dec185b1e9c 100644 (file)
@@ -3,6 +3,10 @@ class Group < ArvadosBase
     true
   end
 
+  def self.copies_to_projects?
+    false
+  end
+
   def self.contents params={}
     res = arvados_api_client.api self, "/contents", {
       _method: 'GET'
@@ -25,13 +29,11 @@ class Group < ArvadosBase
     group_class == 'project' ? 'Project' : super
   end
 
-  def editable?
-    respond_to?(:writable_by) and
-      writable_by and
-      writable_by.index(current_user.uuid)
-  end
-
   def textile_attributes
     [ 'description' ]
   end
+
+  def self.creatable?
+    false
+  end
 end