• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revisiond271a2486d1ed99e9594031fd96d4bba34cfb27c (tree)
Zeit2012-05-09 04:59:34
AutorCory Johns <johnsca@geek...>
CommiterCory Johns

Log Message

[#3598] Fixed project_updated event not firing on new permissions admin

Signed-off-by: Cory Johns <johnsca@geek.net>

Ändern Zusammenfassung

Diff

--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -678,6 +678,7 @@ class GroupsController(BaseController):
678678 return dict(error='You cannot remove the admin permission from the admin group.')
679679 M.AuditLog.log('revoked permission %s from group with id %s', permission, role_id)
680680 c.project.acl.remove(M.ACE.allow(ObjectId(role_id), permission))
681+ g.post_event('project_updated')
681682 return self._map_group_permissions()
682683
683684 @without_trailing_slash
@@ -697,6 +698,7 @@ class GroupsController(BaseController):
697698 return dict(error='%s (%s) is already in the group %s.' % (user.display_name, username, group.name))
698699 M.AuditLog.log('add user %s to %s', username, group.name)
699700 user.project_role().roles.append(group._id)
701+ g.post_event('project_updated')
700702 return dict(username=username, displayname=user.display_name)
701703
702704 @without_trailing_slash
@@ -716,6 +718,7 @@ class GroupsController(BaseController):
716718 return dict(error='%s (%s) is not in the group %s.' % (user.display_name, username, group.name))
717719 M.AuditLog.log('remove user %s from %s', username, group.name)
718720 user.project_role().roles.remove(group._id)
721+ g.post_event('project_updated')
719722 return dict()
720723
721724 @without_trailing_slash