Edgewall Software

Changes between Version 7 and Version 8 of ExtraPermissionsProvider


Ignore:
Timestamp:
Jan 18, 2017, 2:04:40 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Copy additional text from comment:4:ticket:11429.

Legend:

Unmodified
Added
Removed
Modified
  • ExtraPermissionsProvider

    v7 v8  
    33Optional component which makes it possible to easily add new permissions to a Trac environment. These can be used for example in configurable [wiki:TracWorkflow]s, when one wants to add a permission specific to a transition, via the `.permissions` key.
    44
    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:
     5To add new permissions, create a new section `[extra-permissions]` in
     6[TracIni#extra-permissions-section trac.ini]. Every entry in that section defines a meta-permission
     7and a comma-separated list of permissions. For example:
    68{{{#!ini
    79[extra-permissions]
    810EXTRA_ADMIN = EXTRA_VIEW, EXTRA_MODIFY, EXTRA_DELETE
    911}}}
    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.
     12This entry will define three new permissions `EXTRA_VIEW`,
     13`EXTRA_MODIFY` and `EXTRA_DELETE`, as well as a meta-permissions
     14`EXTRA_ADMIN` that grants all three permissions.
    1115
    12 If you don't want a meta-permission, start the meta-name with an underscore (`_`):
     16The permissions are created in upper-case characters regardless of
     17the casing of the definitions in `trac.ini`. For example, the
     18definition `extra_view` would create the permission `EXTRA_VIEW`.
     19
     20If you don't want a meta-permission, start the meta-name with an
     21underscore (`_`):
    1322{{{#!ini
    1423[extra-permissions]