When a change in the access controls is performed on an image gallery, all permissions are deleted and reset to default, no change is taken into account.

Technical description:
the DELETE FROM image_gallery_access is performed, not the INSERT to set the new permissions

CommentFileSizeAuthor
#1 image_gallery_access-564654.patch1.06 KBced.cornez

Comments

ced.cornez’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

I think this is due to a bug in image_gallery_access.admin.inc

I propose a patch in attachment, tested on my environment

salvis’s picture

Assigned: ced.cornez » Unassigned
Status: Needs review » Fixed

Thank you rocced for this very important fix, and just in time for BETA3!

http://drupal.org/cvs?commit=258664

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.