Contents
Adds permission to delete attachments
Description
This plugin adds the exclusive right to delete and replace attachments, regardless of who added or changed the attachment. The plugin introduces the permission TICKET_ATTACHMENT_DELETE
: any user with this permission can delete and replace attachments, regardless of who added or changed it.
The creation of this plugin was inspired by t:#948.
Note that users can delete their own attachments since Trac 1.3.2 if LegacyAttachmentPolicy
is used (#12719).
See also: SelfDeletePlugin for an alternative to deleting attachments and AttachFilterPlugin for rejecting attachments.
Bugs/Feature Requests
Existing bugs and feature requests for AttachmentPolicyPlugin are here.
If you have any issues, create a new ticket.
defect |
1 / 1 |
|
---|---|---|
enhancement |
0 / 1 |
|
task |
1 / 1 |
Download
Download the zipped source from here.
Source
You can check out AttachmentPolicyPlugin from here using Subversion, or browse the source with Trac.
Installation
General instructions on installing Trac plugins can be found on the TracPlugins page.
Configuration
To work correctly, the module has to be placed in your list of permission policies in your trac.ini
file:
[trac] permission_policies = AttachmentDeletePolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy
Recent Changes
- 16321 by rjollos on 2017-03-10 19:25:52
-
0.1: Conform to PEP8
- 13152 by rjollos on 2013-05-17 01:01:23
-
Fixes #11085:
- Added BSD 3-Clause license with permission of author, adding license text in a
COPYING
file and adding headers to source code. - Tidied up
setup,py
. Changedurl
to point totrac-hacks
since this variable affects where defects are reported in the case that the user creates a ticket using the button on the Internal Error page.
- Added BSD 3-Clause license with permission of author, adding license text in a
- 13142 by rjollos on 2013-05-15 09:50:43
-
Removed empty
0.9
directory.
(more)
Author/Contributors
Attachments (1)
-
Attachment_Policy_Plugin-0.1.0-py2.6.egg (3.4 KB) - added by 13 years ago.
Version 0.1.0 of
AttachmentPolicyPlugin
compiled with python 2.6 and tested under trac 0.12
Download all attachments as: .zip