aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2008-05-16 15:25:16 -0400
committerChris Ball <cjb@laptop.org>2008-05-16 15:25:16 -0400
commitf98ccf59ee91429ee71c82babbf5f82d2b5d357e (patch)
tree5eb3f5973e509fd53748879faf9bada08c182afd /Bugs-Everywhere-Web/beweb
parent3d72ff8485b1357cac9965425d5c0c9220839d30 (diff)
downloadbugseverywhere-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.py1
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