| 117 | |
| 118 | ===== New permission policies for Wiki and Ticket realms |
| 119 | |
| 120 | Since 1.3.2 there are new permission policies for the ticket and wiki systems. `DefaultTicketPolicy` allows an authenticated users with `TICKET_APPEND` or `TICKET_CHPROP` to modify the description of a ticket they reported. It also implements the pre-1.3.2 behavior of allowing users to edit their own ticket comments. [#Newpermissionspolicyforread-onlywikipages ReadonlyWikiPolicy], added in 1.1.2, is renamed to `DefaultWikiPolicy`. The new permission policy have the advantage of being easily replaced with alternate implementations if the default behavior is not desired. |
| 121 | |
| 122 | If `[trac] permission_policy` has the default value `ReadonlyWikiPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy`, then `DefaultWikiPolicy, DefaultTicketPolicy` should be automatically appended to the list when upgrading the environment: |
| 123 | {{{#!ini |
| 124 | [trac] |
| 125 | permission_policies = DefaultWikiPolicy, |
| 126 | DefaultTicketPolicy, |
| 127 | DefaultPermissionPolicy, |
| 128 | LegacyAttachmentPolicy |
| 129 | }}} |
| 130 | |
| 131 | If other permission policies are enabled, `trac.ini` will need to be edited to `DefaultWikiPolicy, DefaultTicketPolicy` to add `permission_policies`. See [wiki:TracFineGrainedPermissions#DefaultWikiPolicyandDefaultTicketPolicy] for additional details on the proper ordering. |