X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/12d990a6590e5f23a5998d29a2d8efdb0f733688..b3a016e9a47d453b5ae4d287d8b6eaafd69971df:/apps/workbench/app/models/group.rb diff --git a/apps/workbench/app/models/group.rb b/apps/workbench/app/models/group.rb index 3f5da155c4..08b13bf34b 100644 --- a/apps/workbench/app/models/group.rb +++ b/apps/workbench/app/models/group.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class Group < ArvadosBase def self.goes_in_projects? true @@ -32,4 +36,12 @@ class Group < ArvadosBase 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