Modify ↓
Opened 14 years ago
Closed 14 years ago
#7811 closed defect (fixed)
Failed to add download when no DOWNLOADS_ADMIN permission
Reported by: | Owned by: | Radek Bartoň | |
---|---|---|---|
Priority: | normal | Component: | DownloadsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
When a user has DOWNLOADS_ADD but not DOWNLOADS_ADMIN, the upload fails with "Insufficient privileges to perform this operation". The problem is that download_created is called and check_permission is set to require DOWNLOADS_ADMIN for modification. The result is that the upload fails and even worse, the file is already uploaded but not probably "processed". When someone tries to upload a file, the plug-in reports that the directory for that ID already exists (well, actually the error message is a bit more cryptic). Apparently the ID is not probably assigned or something like that before the bug causes the exception...
Attachments (0)
Note: See
TracTickets for help on using
tickets.
P.S.: Changing the check_permission in tags.py to the following line seems to fix this.