Skip to content

Commit

Permalink
Prevent recursion.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Jul 23, 2012
1 parent f42903c commit a6d1627
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions componentpermissions/api.py
Expand Up @@ -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:
Expand Down

0 comments on commit a6d1627

Please sign in to comment.