Skip to content

Instantly share code, notes, and snippets.

@tinus-github
Created April 18, 2011 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinus-github/f54c15cda7da7a092c08 to your computer and use it in GitHub Desktop.
Save tinus-github/f54c15cda7da7a092c08 to your computer and use it in GitHub Desktop.
Patch to mastertickets to check for permissions
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment