Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@tinus-github /perms.diff secret

Patch to mastertickets to check for permissions
diff -ur coderanger-trac-mastertickets-42b59b4/mastertickets/ coderanger-trac-mastertickets-perms/mastertickets/
--- coderanger-trac-mastertickets-42b59b4/mastertickets/ 2011-01-29 13:52:34.000000000 +0100
+++ coderanger-trac-mastertickets-perms/mastertickets/ 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
Something went wrong with that request. Please try again.