secret
Created

Patch to mastertickets to check for permissions

  • Download Gist
perms.diff
Diff
1 2 3 4 5 6 7 8 9 10 11
diff -ur coderanger-trac-mastertickets-42b59b4/mastertickets/web_ui.py coderanger-trac-mastertickets-perms/mastertickets/web_ui.py
--- coderanger-trac-mastertickets-42b59b4/mastertickets/web_ui.py 2011-01-29 13:52:34.000000000 +0100
+++ coderanger-trac-mastertickets-perms/mastertickets/web_ui.py 2011-04-18 16:23:46.184010835 +0200
@@ -131,6 +131,7 @@
return req.path_info.startswith('/depgraph')
 
def process_request(self, req):
+ req.perm.require('TICKET_VIEW')
path_info = req.path_info[10:]
 
if not path_info:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.