projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15529: LoginCluster uses ApiClientAuthorization.remote_host
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
group.rb
diff --git
a/apps/workbench/app/models/group.rb
b/apps/workbench/app/models/group.rb
index 558c587a1c9c83d3a0bb824475e0b8f2553e4a0d..08b13bf34b74611d2847918ffebeb8d65c19fb66 100644
(file)
--- a/
apps/workbench/app/models/group.rb
+++ b/
apps/workbench/app/models/group.rb
@@
-1,8
+1,16
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class Group < ArvadosBase
def self.goes_in_projects?
true
end
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'
def self.contents params={}
res = arvados_api_client.api self, "/contents", {
_method: 'GET'
@@
-25,9
+33,15
@@
class Group < ArvadosBase
group_class == 'project' ? 'Project' : super
end
group_class == 'project' ? 'Project' : super
end
- def editable?
- respond_to?(:writable_by) and
- writable_by and
- writable_by.index(current_user.uuid)
+ def textile_attributes
+ [ 'description' ]
+ end
+
+ def self.creatable?
+ false
+ end
+
+ def untrash
+ arvados_api_client.api(self.class, "/#{self.uuid}/untrash", {"ensure_unique_name" => true})
end
end
end
end