+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class Group < ArvadosBase
def self.goes_in_projects?
true
end
+ def self.copies_to_projects?
+ false
+ end
+
def self.contents params={}
res = arvados_api_client.api self, "/contents", {
_method: 'GET'
end
def class_for_display
- group_class.in?(['folder', 'project']) ? 'Project' : super
+ group_class == 'project' ? 'Project' : super
+ end
+
+ def textile_attributes
+ [ 'description' ]
+ end
+
+ def self.creatable?
+ false
end
- def editable?
- respond_to?(:writable_by) and
- writable_by and
- writable_by.index(current_user.uuid)
+ def untrash
+ arvados_api_client.api(self.class, "/#{self.uuid}/untrash", {"ensure_unique_name" => true})
end
end