source: privateticketsplugin/trunk/README

Last change on this file was 11498, checked in by Ryan J Ollos, 11 years ago

Refs #4339: Part of [11497]. README file was copied to wrong location.

  • Property svn:mime-type set to text/x-rst
File size: 2.3 KB
RevLine 
[3598]1Notes
2=====
3Allow users to only see tickets they are associated with.
4
5There are three main permissions for this plugin: ``TICKET_VIEW_REPORTER``,
6``TICKET_VIEW_CC``, and ``TICKET_VIEW_OWNER``. ``TICKET_VIEW_SELF`` is an
7alias for all three of these.
8
9With each permission, users will only be able to see tickets where they are
10the person mentioned in the permission. So if a user has
11``TICKET_VIEW_REPORTER``, they can only see tickets they reported. For
12``TICKET_VIEW_CC``, they just have to be included in the CC list.
13
14There are also group-based permissions: ``TICKET_VIEW_REPORTER_GROUP``,
15``TICKET_VIEW_CC_GROUP``, and ``TICKET_VIEW_OWNER_GROUP``. These work in a
16similar way to their non-group counterparts, except that you are granted
17access if you share a group with the target user. For example, if ticket 1 was
18reported by Allan, and Allan and Bob are both in the group company_foo, and
19Bob has ``TICKET_VIEW_REPORTER_GROUP``, then Bob will be able to see ticket 1
20since he shares a group with the reporter. Each group-based permission is also
21an alias for the normal one, so you do not have to grant both.
22``TICKET_VIEW_GROUP`` is an alias for all the group-based permissions (and
23therefore all the normal ones as well).
24
25These extra permissions can only deny access, not allow it. This means the
26user must still have ``TICKET_VIEW`` granted as normal.
27
28Finally, users with ``TRAC_ADMIN`` will not be restricted by this plugin.
[3751]29The meta-user "anonymous" also cannot be restricted by this plugin, as their
30identity isn't known to be checked. Be sure to not grant ``TICKET_VIEW`` to
31anonymous, or unauthenticated users will be able to see all tickets.
[3598]32
33Configuration
34=============
35All configuration options go in the ``[privatetickets]`` section.
36
37``group_blacklist``
38    Groups to ignore for the purposes of the ``*_GROUP`` permissions.
39   
40    Defaults to "``anonymous, authenticated``"
41
42You must also add ``PrivateTicketsPolicy`` to your ``permission_policies``
43setting in trac.ini. It must be before the ``DefaultPermissionPolicy``. See
44below for an example if you don't have any other policies.
45   
46Example
47=======
48An example configuration::
49
50    [privatetickets]
51    group_blacklist = anonymous, authenticated, labusers
52   
53    [components]
54    privatetickets.* = enabled
55   
56    [trac]
57    permission_policies = PrivateTicketsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy
Note: See TracBrowser for help on using the repository browser.