diff options
author | Chris Ball <cjb@laptop.org> | 2008-05-16 15:25:16 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2008-05-16 15:25:16 -0400 |
commit | f98ccf59ee91429ee71c82babbf5f82d2b5d357e (patch) | |
tree | 5eb3f5973e509fd53748879faf9bada08c182afd /Bugs-Everywhere-Web/beweb | |
parent | 3d72ff8485b1357cac9965425d5c0c9220839d30 (diff) | |
download | bugseverywhere-f98ccf59ee91429ee71c82babbf5f82d2b5d357e.tar.gz |
Require editbugs permission to edit bugs. Patch from j@oil21.org.
Diffstat (limited to 'Bugs-Everywhere-Web/beweb')
-rw-r--r-- | Bugs-Everywhere-Web/beweb/controllers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugs-Everywhere-Web/beweb/controllers.py b/Bugs-Everywhere-Web/beweb/controllers.py index 8def76c..e3d555b 100644 --- a/Bugs-Everywhere-Web/beweb/controllers.py +++ b/Bugs-Everywhere-Web/beweb/controllers.py @@ -52,6 +52,7 @@ class Comment(PrestHandler): raise cherrypy.HTTPRedirect(comment_url(comment=reply_comment.uuid, **reply_data)) + @identity.require( identity.has_permission("editbugs")) @provide_action("action", "Update") def update(self, comment_data, comment, comment_body, *args, **kwargs): comment.body = comment_body |