projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
19146: Add can_write/can_manage to users#list, fix select=can_*.
[arvados.git]
/
services
/
api
/
app
/
models
/
group.rb
diff --git
a/services/api/app/models/group.rb
b/services/api/app/models/group.rb
index e18ee5ef38748fa66c71fc1132af6d6e8cb6199f..0c36a048dcfd9f31679abf642c085e14e97dc1e4 100644
(file)
--- a/
services/api/app/models/group.rb
+++ b/
services/api/app/models/group.rb
@@
-48,6
+48,15
@@
class Group < ArvadosModel
t.add :can_manage
end
t.add :can_manage
end
+ protected
+
+ def self.attributes_required_columns
+ super.merge(
+ 'can_write' => ['owner_uuid', 'uuid'],
+ 'can_manage' => ['owner_uuid', 'uuid'],
+ )
+ end
+
def ensure_filesystem_compatible_name
# project and filter groups need filesystem-compatible names, but others
# don't.
def ensure_filesystem_compatible_name
# project and filter groups need filesystem-compatible names, but others
# don't.