Closed (fixed)
Project:
Image Browser
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
13 Sep 2009 at 22:30 UTC
Updated:
27 Oct 2009 at 15:30 UTC
I was trying to give the authenticated user the permission to delete his own images through the ib interface (Delete Button to show up).
Well this cannot be possible even if i checked all the permissions checkboxes in admin/user/permissions ...
Trying to find out what is wrong i found that:
Line 473 in imagebrowser.module is:
if(user_access('edit images')) {
This should be:
if(user_access('edit own images')) {
in order for the permissions to work.
Thanks for this fantastic module.
Comments
Comment #1
jdelaune commentedFantastic thanks for spotting this.
Comment #2
jdelaune commentedI had to work on this a bit more so that if you had the permission edit any images then this would still work etc. Cheers.