Michael Renzmann wrote:
> Hi.
> 
>> You could just have PASTEBIN_USE be the superset of VIEW and CREATE,
>> that way no change is otherwise necessary.
> 
> Yes, thanks for the suggestion. It certainly works while the additional
> permissions are just _VIEW and _CREATE.
> 
> However, in a next step I intend to introduce also a _DELETE permission -
> at that point having _USE as superset likely causes confusion whether or
> not _DELETE is also part of _USE or not.

I think you can do this, but I haven't tried.

# IPermissionRequestor methods
ef get_permission_actions(self):
         actions = ['PASTEBIN_CREATE', 'PASTEBIN_VIEW', 'PASTEBIN_DELETE']
         return actions + [('PASTEBIN_USE', actions[:2]), 
('PASTEBIN_ADMIN', actions)]


Shane


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to