11501: Simplified helper method call. Changed wording of run time description.
[arvados.git] / apps / workbench / app / models / group.rb
index 30488c3383b812bb7ffc32dbec524bdb88c1c2cf..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'
@@ -22,12 +26,14 @@ class Group < ArvadosBase
   end
 
   def class_for_display
-    group_class.in?(['folder', 'project']) ? 'Project' : super
+    group_class == 'project' ? 'Project' : super
+  end
+
+  def textile_attributes
+    [ 'description' ]
   end
 
-  def editable?
-    respond_to?(:writable_by) and
-      writable_by and
-      writable_by.index(current_user.uuid)
+  def self.creatable?
+    false
   end
 end