projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a78a6
)
19269: Update error text re modifying group role without can_manage.
author
Tom Clegg <tom@curii.com>
Wed, 24 Aug 2022 20:48:17 +0000
(16:48 -0400)
committer
Tom Clegg <tom@curii.com>
Thu, 25 Aug 2022 14:55:02 +0000
(10:55 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
services/api/app/models/group.rb
patch
|
blob
|
history
diff --git
a/services/api/app/models/group.rb
b/services/api/app/models/group.rb
index 0c36a048dcfd9f31679abf642c085e14e97dc1e4..e44e605b16b842e1bd5c4fbe61d7820ef62b8cff 100644
(file)
--- a/
services/api/app/models/group.rb
+++ b/
services/api/app/models/group.rb
@@
-250,7
+250,7
@@
class Group < ArvadosModel
if self.owner_uuid != system_user_uuid
raise "Owner uuid for role must be system user"
end
- raise PermissionDeniedError unless current_user.can?(manage: uuid)
+ raise PermissionDeniedError
.new("role group cannot be modified without can_manage permission")
unless current_user.can?(manage: uuid)
true
else
super