allura
Revision | 4c80b440c9397eaadb6586e6a1a1f6180d8d921f (tree) |
---|---|
Zeit | 2012-05-10 05:07:58 |
Autor | Cory Johns <johnsca@geek...> |
Commiter | Yaroslav Luzin |
[#3598] Fixed project_updated event not firing on new permissions admin
Signed-off-by: Cory Johns <johnsca@geek.net>
@@ -678,6 +678,7 @@ class GroupsController(BaseController): | ||
678 | 678 | return dict(error='You cannot remove the admin permission from the admin group.') |
679 | 679 | M.AuditLog.log('revoked permission %s from group with id %s', permission, role_id) |
680 | 680 | c.project.acl.remove(M.ACE.allow(ObjectId(role_id), permission)) |
681 | + g.post_event('project_updated') | |
681 | 682 | return self._map_group_permissions() |
682 | 683 | |
683 | 684 | @without_trailing_slash |
@@ -697,6 +698,7 @@ class GroupsController(BaseController): | ||
697 | 698 | return dict(error='%s (%s) is already in the group %s.' % (user.display_name, username, group.name)) |
698 | 699 | M.AuditLog.log('add user %s to %s', username, group.name) |
699 | 700 | user.project_role().roles.append(group._id) |
701 | + g.post_event('project_updated') | |
700 | 702 | return dict(username=username, displayname=user.display_name) |
701 | 703 | |
702 | 704 | @without_trailing_slash |
@@ -716,6 +718,7 @@ class GroupsController(BaseController): | ||
716 | 718 | return dict(error='%s (%s) is not in the group %s.' % (user.display_name, username, group.name)) |
717 | 719 | M.AuditLog.log('remove user %s from %s', username, group.name) |
718 | 720 | user.project_role().roles.remove(group._id) |
721 | + g.post_event('project_updated') | |
719 | 722 | return dict() |
720 | 723 | |
721 | 724 | @without_trailing_slash |