imeji-community / imeji

imeji source code can now be found on https://github.com/MPDL/imeji.
https://github.com/MPDL/imeji
13 stars 15 forks source link

Edmond: user with upload file rights can not overwrite the orginal file #1082

Closed yaoyan closed 9 years ago

yaoyan commented 9 years ago
  1. user has rights to upload file in shared colletion
  2. user upload a file and want to overwirte the original file
  3. error message: user not allowed to update the file
  4. go back to item view, the original file is broken

overwritefile overwritefile2

yaoyan commented 9 years ago

Go th home page, the broken item with collection name showed in caroussel homeview

vmakarenko commented 9 years ago

Cannot reproduce on dev-faces and qa-imeji: UPLOAD CONTENT interface -> checked "Upload preview images..." and "Overwrite the original file..." -> upload already uploaded file (override the old file). Works fine.

yaoyan commented 9 years ago

Error find in Dev and Edmond

Test files: apple

apple

vmakarenko commented 9 years ago

Reproduced on dev

vmakarenko commented 9 years ago

Reason: not enough grants for file update for target user if only Create Item checked, Edit Item should be checked as well. Changed: