[ARVADOS] updated: e4b0ff638bb41ce55ab3770c4f2b7f744d653aac
git at public.curoverse.com
git at public.curoverse.com
Tue Apr 8 19:51:03 EDT 2014
Summary of changes:
services/api/app/models/user.rb | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
via e4b0ff638bb41ce55ab3770c4f2b7f744d653aac (commit)
from 50ee9817061629f9ffe2568f937149f6e877df04 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e4b0ff638bb41ce55ab3770c4f2b7f744d653aac
Author: Tom Clegg <tom at curoverse.com>
Date: Tue Apr 8 19:50:46 2014 -0400
Fix permission error when adding system_group->new_user permission link.
diff --git a/services/api/app/models/user.rb b/services/api/app/models/user.rb
index e4881ed..5c03eda 100644
--- a/services/api/app/models/user.rb
+++ b/services/api/app/models/user.rb
@@ -403,11 +403,13 @@ class User < ArvadosModel
# all of this user's stuff.
#
def add_system_group_permission_link
- Link.create(link_class: 'permission',
- name: 'can_manage',
- tail_kind: 'arvados#group',
- tail_uuid: system_group_uuid,
- head_kind: 'arvados#user',
- head_uuid: self.uuid)
+ act_as_system_user do
+ Link.create(link_class: 'permission',
+ name: 'can_manage',
+ tail_kind: 'arvados#group',
+ tail_uuid: system_group_uuid,
+ head_kind: 'arvados#user',
+ head_uuid: self.uuid)
+ end
end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list