| 1 | = Component permissions plugin = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | This plugin provides permissions based on ticket components. For example, having a component `foobar` it will provide permission `COMPONENT_FOOBAR_VIEW`. If configured field is checked than this permission is required to access the ticket with this component. |
| 6 | |
| 7 | After installation you have to configure which field it checks to enable component permission checking: |
| 8 | |
| 9 | {{{ |
| 10 | [component-permissions] |
| 11 | ticket_field_name = privacy |
| 12 | }}} |
| 13 | |
| 14 | For example, this can be such custom ticket field: |
| 15 | |
| 16 | {{{ |
| 17 | [ticket-custom] |
| 18 | privacy = checkbox |
| 19 | privacy.label = Privacy sensitive |
| 20 | privacy.value = 0 |
| 21 | }}} |
| 22 | |
| 23 | You should also add the component somewhere near the beginning of the `permission_policies` list: |
| 24 | |
| 25 | {{{ |
| 26 | permission_policies = ComponentPermissionsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy |
| 27 | }}} |
| 28 | |
| 29 | == Bugs/Feature Requests == |
| 30 | |
| 31 | Please use [https://bitbucket.org/mitar/trac-componentpermissions/issues Bitbucket] for any issues you have with ComponentPermissionsPlugin. |
| 32 | |
| 33 | == Download == |
| 34 | |
| 35 | Download the zipped source from [https://bitbucket.org/mitar/trac-componentpermissions/get/tip.zip here]. |
| 36 | |
| 37 | == Source == |
| 38 | |
| 39 | You can clone ComponentPermissionsPlugin from [https://bitbucket.org/mitar/trac-componentpermissions here] using Mercurial, or [https://bitbucket.org/mitar/trac-componentpermissions/src browse the source] on Bitbucket. |
| 40 | |
| 41 | == Installation == |
| 42 | |
| 43 | Please follow [http://trac.edgewall.org/wiki/TracPlugins#InstallingaTracPlugin documentation] on how to install Trac's plugins. |
| 44 | |
| 45 | == Author/Contributors == |
| 46 | |
| 47 | '''Author:''' [wiki:mitar] [[BR]] |
| 48 | '''Maintainer:''' [wiki:mitar] [[BR]] |
| 49 | '''Contributors:''' |