Changes between Version 6 and Version 7 of ComponentPermissionsPlugin
- Timestamp:
- Mar 28, 2013, 2:00:27 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ComponentPermissionsPlugin
v6 v7 4 4 == Description == 5 5 6 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 isrequired to access the ticket with this component.6 This plugin provides permissions based on ticket components. For example, having a component `foobar` it will provide permission `COMPONENT_FOOBAR_VIEW` which is then required to access the ticket with this component. 7 7 8 8 After installation you have to configure which field it checks to enable component permission checking: … … 11 11 #!ini 12 12 [component-permissions] 13 ticket_field_name = privacy14 13 allow_reporter = false 15 14 allow_owner = false … … 18 17 }}} 19 18 20 For example, this can be such custom ticket field: 19 You should also add the component somewhere near the beginning of the `permission_policies` list: 20 21 {{{ 22 #!ini 23 permission_policies = ComponentPermissionsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy 24 }}} 25 26 Additionally, you can require component permission only when a configured ticket field is checked. For example, this can be such custom ticket field: 21 27 22 28 {{{ … … 28 34 }}} 29 35 30 You should also add the component somewhere near the beginning of the `permission_policies` list:36 And you configure this plugin to use it: 31 37 32 38 {{{ 33 39 #!ini 34 permission_policies = ComponentPermissionsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy 40 [component-permissions] 41 ticket_field_name = privacy 35 42 }}} 43 44 This will require component permission only when ticket is marked as privacy sensitive. 45 46 If you want only some components to have limited access, simply assign other components' permissions to the anonymous user. 36 47 37 48 There is also a special permission `COMPONENT_VIEW` which gives the user (or group) permission to see any ticket otherwise limited by component permissions.