• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

修訂4c80b440c9397eaadb6586e6a1a1f6180d8d921f (tree)
時間2012-05-10 05:07:58
作者Cory Johns <johnsca@geek...>
CommiterYaroslav Luzin

Log Message

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

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

Change Summary

差異

--- 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