Edgewall Software

Changes between Version 9 and Version 10 of CookBook/PermissionPolicies


Ignore:
Timestamp:
May 4, 2017, 1:15:12 AM (3 years ago)
Author:
Ryan J Ollos
Comment:

Added missing instruction.

Legend:

Unmodified
Added
Removed
Modified
  • CookBook/PermissionPolicies

    v9 v10  
    5151        return None
    5252}}}
    53  1. Edit the `permission_policies` option in the [TracIni#trac-section "[trac]"] section of trac.ini, adding the component ''before'' the default [TracPermissions permission] policy:
     53 1. Edit the `permission_policies` option in the [TracIni#trac-section "[trac]"] section of trac.ini, adding the `RestrictTicketActions` component ''before'' the default [TracPermissions permission] policy:
    5454 {{{#!ini
    5555 [trac]
     
    111111        return None
    112112}}}
    113  1. Edit the `permission_policies` option in the [TracIni#trac-section "[trac]"] section of trac.ini, adding the component ''before'' the default [TracPermissions permission] policy:
     113 1. Edit the `permission_policies` option in the [TracIni#trac-section "[trac]"] section of trac.ini, adding the `GrantTicketOwnerPermissionsPolicy`
     114 component ''before'' the default [TracPermissions permission] policy:
    114115 {{{#!ini
    115116 [trac]
     
    170171            return ticket['reporter'] == username
    171172}}}
     1731. Edit the `permission_policies` option in the [TracIni#trac-section "[trac]"] section of trac.ini, adding the `SupportDeskPolicy` component ''before'' the default [TracPermissions permission] policy:
     174 {{{#!ini
     175 [trac]
     176 permission_policies = SupportDeskPolicy, ...
     177}}}
    1721781. Revoke `TICKET_VIEW` and grant `TICKET_VIEW_REPORTED` for users that should only view tickets they reported.
    1731791. Grant other permissions such as `TICKET_CHGPROP`, `TICKET_APPEND` or `TICKET_MODIFY`. Users can only change tickets they can view, therefore you'll only be granting these permissions for tickets the user reported.