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