Permalink
Browse files

Prevent recursion.

  • Loading branch information...
mitar committed Jul 23, 2012
1 parent f42903c commit a6d1627c679cdb80a078658488610b19bc840454
Showing with 3 additions and 0 deletions.
  1. +3 −0 componentpermissions/api.py
@@ -99,6 +99,9 @@ def check_permission(self, action, username, resource, perm):
# To prevent recursion
if action in self.get_permission_actions():
return
+ # To prevent recursion when used together with sensitive tickets
+ if action == 'SENSITIVE_VIEW':
+ return
# Check whether we're dealing with a ticket resource
while resource:

0 comments on commit a6d1627

Please sign in to comment.