Changes between Version 2 and Version 3 of ExtraPermissionsProvider
- Timestamp:
- Jun 3, 2011, 11:32:36 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExtraPermissionsProvider
v2 v3 1 1 == [source:trunk/tracopt/perm/config_perm_provider.py tracopt.perm.config_perm_provider.ExtraPermissionsProvider] 2 2 3 Optional component which makes it possible to easily add new permissions to to a Trac environment. These can be used for example in configurable TracWorkflow``s, when one wants to add a permission specific to a transition, via the `.permissions` key.3 Optional component which makes it possible to easily add new permissions to to a Trac environment. These can be used for example in configurable TracWorkflow``s, when one wants to add a permission specific to a transition, via the `.permissions` key. 4 4 5 5 To add new permissions, create a new section `[extra-permissions]` in [TracIni#extra-permissions-section trac.ini]. Every entry in that section defines a meta-permission and a comma-separated list of permissions. For example: … … 8 8 extra_admin = extra_view, extra_modify, extra_delete 9 9 }}} 10 This entry will define three new permissions `EXTRA_VIEW`, `EXTRA_MODIFY` and `EXTRA_DELETE`, as well as a meta-permission s`EXTRA_ADMIN` that grants all three permissions.10 This entry will define three new permissions `EXTRA_VIEW`, `EXTRA_MODIFY` and `EXTRA_DELETE`, as well as a meta-permission `EXTRA_ADMIN` that grants all three permissions. 11 11 12 12 If you don't want a meta-permission, start the meta-name with an underscore (`_`):