aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb/controllers.py
diff options
context:
space:
mode:
Diffstat (limited to 'Bugs-Everywhere-Web/beweb/controllers.py')
-rw-r--r--Bugs-Everywhere-Web/beweb/controllers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugs-Everywhere-Web/beweb/controllers.py b/Bugs-Everywhere-Web/beweb/controllers.py
index 358e74a..8def76c 100644
--- a/Bugs-Everywhere-Web/beweb/controllers.py
+++ b/Bugs-Everywhere-Web/beweb/controllers.py
@@ -26,6 +26,7 @@ def comment_url(project, bug, comment, **kwargs):
(project, bug, comment), kwargs)
class Comment(PrestHandler):
+ @identity.require( identity.has_permission("editbugs"))
@provide_action("action", "New comment")
def new_comment(self, comment_data, comment, *args, **kwargs):
bug_tree = project_tree(comment_data['project'])
@@ -37,6 +38,7 @@ class Comment(PrestHandler):
raise cherrypy.HTTPRedirect(comment_url(comment=comment.uuid,
**comment_data))
+ @identity.require( identity.has_permission("editbugs"))
@provide_action("action", "Reply")
def reply_comment(self, comment_data, comment, *args, **kwargs):
bug_tree = project_tree(comment_data['project'])