Edgewall Software

Changes between Version 9 and Version 10 of CookBook/Configuration/SignedTickets


Ignore:
Timestamp:
Sep 22, 2016, 11:43:00 PM (8 years ago)
Author:
Ryan J Ollos
Comment:

Modify in response to gmessage:trac-users:MNvfBPbiAS0/AgrNxg40BgAJ.

Legend:

Unmodified
Added
Removed
Modified
  • CookBook/Configuration/SignedTickets

    v9 v10  
    6666
    6767    allowed_actions = ('TICKET_VIEW',)
    68     admin_actions = ('TICKET_ADMIN', 'TRAC_ADMIN')
    6968
    7069    def check_permission(self, action, username, resource, perm):
     
    7271                resource.id is None or \
    7372                action in self.allowed_actions or \
    74                 action in self.admin_actions or \
    75                 any(a in perm for a in self.admin_actions):
     73                action in ('TICKET_ADMIN', 'TRAC_ADMIN') or \
     74                'TICKET_ADMIN' in perm:
    7675            return None
    7776