Changes between Version 8 and Version 9 of CookBook/Configuration/SignedTickets
- Timestamp:
- Sep 22, 2016, 6:59:29 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook/Configuration/SignedTickets
v8 v9 66 66 67 67 allowed_actions = ('TICKET_VIEW',) 68 admin_actions = ('TICKET_ADMIN', 'TRAC_ADMIN') 68 69 69 70 def check_permission(self, action, username, resource, perm): … … 71 72 resource.id is None or \ 72 73 action in self.allowed_actions or \ 73 action == 'TICKET_ADMIN' or 'TICKET_ADMIN' in perm: 74 action in self.admin_actions or \ 75 any(a in perm for a in self.admin_actions): 74 76 return None 75 77