You could just have PASTEBIN_USE be the superset of VIEW and CREATE, 
that way no change is otherwise necessary.
Regards,
Shane

Michael Renzmann wrote:
> Hi all.
> 
> I'm working on TracPastePlugin, and so far it had just one permission,
> PASTEBIN_USE, which allows to view existing and create new pastes. I
> intend to introduce finer-grained permissions, starting with PASTEBIN_VIEW
> and PASTEBIN_CREATE.
> 
> To make upgrading easier for the admin, I'm considering to let the plugin
> take care of adjusting permissions accordingly as part of an environment
> upgrade. The idea is to let the plugin require an environment upgrade if
> PASTEBIN_USE is still assigned to any subject in table "permission". As
> part of the environment upgrade permissions PASTEBIN_VIEW and
> PASTEBIN_CREATE are granted to those subjects that have PASTEBIN_USE
> permission, then PASTEBIN_USE is revoked.
> 
> That way, when upgrading to the new plugin version nothing changes for the
> users per se, unless the admin decides to make use of the new options the
> plugin then provides.
> 
> Is it a good idea to implement that? Is there any policy of a kind saying
> that plugins should (not) behave like this?
> 
> Bye, Mike
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
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