Require editbugs permission to edit bugs. Patch from j@oil21.org.
authorChris Ball <cjb@laptop.org>
Fri, 16 May 2008 19:25:16 +0000 (15:25 -0400)
committerChris Ball <cjb@laptop.org>
Fri, 16 May 2008 19:25:16 +0000 (15:25 -0400)
Bugs-Everywhere-Web/beweb/controllers.py

index 8def76c8fb770870f6f89b6cba3fd6b4ac2f4693..e3d555b70662f80703fad46b7d229765dd1addda 100644 (file)
@@ -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