Edgewall Software

Opened 15 years ago

Last modified 12 years ago

#8036 closed enhancement

allow IPermissionRequestor to extend existing meta-permissions — at Initial Version

Reported by: Stephen Compall <stephen.compall@…> Owned by:
Priority: high Milestone: 1.0
Component: general Version: 0.11.2.1
Severity: normal Keywords: patch permission
Cc: felix.schwarz@…, leho@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Sometimes you might want to introduce a new kind of ticket permission, and add it to TICKET_ADMIN without having to wholly redefine it. A good illustration comes from a test IPermissionRequestor I have defined:

def get_permission_actions(self):
    return ['TEST_CREATE', 'TEST_DELETE', 'TEST_MODIFY',
            ('TEST_ADMIN', ['TEST_CREATE', 'TEST_DELETE',
                            'TEST_MODIFY'])]
            ('TEST_CREATE', []),
            ('TEST_ADMIN', ['TEST_CREATE', 'TEST_DELETE']),
            ('TEST_ADMIN', ['TEST_MODIFY'])]

Except with the imagination that TEST_CREATE actually has something, and the TEST_ADMIN variants are in separate IPermissionRequestors.

Change History (1)

by Stephen Compall <stephen.compall@…>, 15 years ago

patch with unit testing

Note: See TracTickets for help on using tickets.