Changes between Version 3 and Version 4 of 1.3/TracPermissions
- Timestamp:
- May 11, 2017, 9:02:00 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
1.3/TracPermissions
v3 v4 97 97 == Attachment Permissions 98 98 99 Attachment permissions are handled by `LegacyAttachmentPolicy`, and unlike the permissions discussed so far attachment permissionsare not directly granted. Rather, the ability to create, view and delete attachments is determined by the attachment's parent realm and permissions the user possess for that realm.99 Attachment permissions are handled by `LegacyAttachmentPolicy`, and unlike the permissions discussed so far, the permissions provided by `LegacyAttachmentPolicy` are not directly granted. Rather, the ability to create, view and delete attachments is determined by the attachment's parent realm and permissions the user possess for that realm. 100 100 101 101 The attachment actions are determined by the following … … 107 107 || `ATTACHMENT_DELETE` || `TICKET_ADMIN` || `WIKI_DELETE` || `MILESTONE_DELETE` || 108 108 }}} 109 110 If explicit attachment permissions are preferred, `ATTACHMENT_CREATE`, `ATTACHMENT_DELETE` and `ATTACHMENT_VIEW` can be created using the [trac:ExtraPermissionsProvider]. The simplest implementation is to simply define the actions. 111 {{{#!ini 112 [extra-permissions] 113 _perms = ATTACHMENT_CREATE, ATTACHMENT_DELETE, ATTACHMENT_VIEW 114 }}} 115 116 An alternative configuration adds an `ATTACHMENT_ADMIN` meta-permission that grants the other 3 permission. 117 {{{#!ini 118 [extra-permissions] 119 ATTACHMENT_ADMIN = ATTACHMENT_CREATE, ATTACHMENT_DELETE, ATTACHMENT_VIEW 120 }}} 121 122 The explicit permissions can be used in concert with `LegacyAttachmentPolicy`, or `LegacyAttachmentPolicy` can be removed from `permission_policies`, in which case only users that have been explicitly granted the corresponding attachment action will be able to create, delete and view attachments. 109 123 110 124 == Granting Privileges