projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 2798-go-keep-client
[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 c628b5699c58adadfc70871a43d5e043dfd6ae41..8d8d3900c75a95ea718e36d1f1fb0d7d0e2a7ead 100644
(file)
--- a/
apps/workbench/app/models/group.rb
+++ b/
apps/workbench/app/models/group.rb
@@
-1,10
+1,20
@@
class Group < ArvadosBase
def contents params={}
class Group < ArvadosBase
def contents params={}
- res =
$
arvados_api_client.api self.class, "/#{self.uuid}/contents", {
+ res = arvados_api_client.api self.class, "/#{self.uuid}/contents", {
_method: 'GET'
}.merge(params)
ret = ArvadosResourceList.new
_method: 'GET'
}.merge(params)
ret = ArvadosResourceList.new
- ret.results =
$
arvados_api_client.unpack_api_response(res)
+ ret.results = arvados_api_client.unpack_api_response(res)
ret
end
ret
end
+
+ def class_for_display
+ group_class == 'folder' ? 'Folder' : super
+ end
+
+ def editable?
+ respond_to?(:writable_by) and
+ writable_by and
+ writable_by.index(current_user.uuid)
+ end
end
end