X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/02c368b2e6f6fd05930db1b57e5887b82a6c8b36..0561bd0c3c07257fd58ded6c7cfa5feeae97af57:/apps/workbench/app/models/group.rb diff --git a/apps/workbench/app/models/group.rb b/apps/workbench/app/models/group.rb index a91b729c86..523e5e94f6 100644 --- 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 + def self.copies_to_projects? + false + end + def self.contents params={} res = arvados_api_client.api self, "/contents", { _method: 'GET' @@ -25,13 +33,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