-
-
Save tinus-github/f54c15cda7da7a092c08 to your computer and use it in GitHub Desktop.
Patch to mastertickets to check for permissions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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