Ticket #948 (new enhancement)
[patch] Add more control over attachments for the average user
| Reported by: | cboos@… | Owned by: | athomas |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11-retriage |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | attachment permission |
| Cc: | dserodio@…, mbertier@…, rsalveti@…, vnbang2003@…, luke-trac@… |
Description
Currently, the average user can simply add attachments, and has no further control over the files that he has previously attached.
I would suggest that a user should be able to:
- delete a file attached by himself (Note: this would imply that an anonymous user could delete files added by another anonymous user)
- replace a file attached by himself by a newer version, simply by keeping a new Replace existing file checkbox checked, on the attachment form
Of course, the users with the TICKET_ADMIN and WIKI_DELETE would still be able to remove any attachment in the appropriate module.
See the attachment:attachment_del_replace.1077.diff for the suggested implementation.
In addition to the above changes, the patch also contains a small enhancement to the display of an attachment (as I have now the attachment information available, I show it in a way similar to the file revision information).


