Version 3 (modified by Mitar, 10 years ago) (diff)


Component permissions plugin


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.

After installation you have to configure which field it checks to enable component permission checking:

ticket_field_name = privacy

For example, this can be such custom ticket field:

privacy = checkbox
privacy.label = Privacy sensitive
privacy.value = 0

You should also add the component somewhere near the beginning of the permission_policies list:

permission_policies = ComponentPermissionsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy

There is also a special permission COMPONENT_VIEW which gives the user (or group) permission to see any ticket otherwise limited by component permissions.

Bugs/Feature Requests

Please use Bitbucket for any issues you have with ComponentPermissionsPlugin.


Download the zipped source from here.


You can clone ComponentPermissionsPlugin from here using Mercurial, or browse the source on Bitbucket.


Please follow documentation on how to install Trac's plugins.


Author: mitar
Maintainer: mitar