Failed to add download when no DOWNLOADS_ADMIN permission
|Reported by:||ak@…||Owned by:||Blackhex|
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...