File Gallery permission broken (using category)
- Status
- Closed
- Subject
- File Gallery permission broken (using category)
- Version
- 11.x
- Category
- Error
- Release Blocker
- Feature
- File Gallery (elFinder or standard UI)
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
r45953
http://show.tiki.org/11x/tiki-list_file_gallery.php?galleryId=7
I set category (photo1 - Id=1) and set File Gallery Photo (category perm test) - Id = 7 and categorize it photo1.
Anonymous have following perms:
''Can view file galleries (tiki_p_view_file_gallery)
Can download files (tiki_p_download_files)''I set user (bernard/12345) member of group registered and in admin Category,category photo1 id=1, i add the following perm:
Can upload files (tiki_p_upload_files)The user bernard (or any registered) should be able to add files in this Files gallery. This is not working.
http://show.tiki.org/11x/tiki-list_file_gallery.php?galleryId=7As long as i don't give the perm:
Can admin file galleries (tiki_p_admin_file_galleries)The upload option is not set right.
There are many case we want to have users/group able to add files in a gallery but not to admin the gallery.- Solution
- Not relevant anymore
- Workaround
It's working, But you need to set file gallery property "Gallery is public" to show "upload files" button for all users.
Update: It's working but it is wrong... the idea was to give permission of the user of the group photo1 using category to upload.
When you set "gallery is public" it bypass the permission and this is wrong both way.ANY ANONYMOUS have now the permission to upload (and that is not what we want of course). I had to recreate the instance and the case so previous links can be wrong. Anyway, go to :
http://bsfez-11581-4515.show.tikiwiki.org/tiki-list_file_gallery.php?galleryId=4As anonymous you can upload a file. This is potentially dangerous and should be considered as blockers now.
- Importance
- 5
- Easy to solve?
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4515
- Created
- Thursday 16 May, 2013 06:18:54 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Monday 15 October, 2018 13:45:37 UTC