Even if I log into my site with Gallery Remote using user account #1, I still have to give anonymous user permission to "create images" before I can drag and drop images into an album. This is with 4.7 and a fresh install of image.module (v 4.7) and image_pub (v 4.7).
Any ideas?
Comments
Comment #1
Steve Dondley commentedQuick fix: comment out lines 426 and 428 (removes if statement). I tried to use:
global $user;
and changed line 426 to
if (user_access('create images') || $user->uid == 1) {
but that didn't work for some reason. Not familiar with this module or how it works at all so I can't offer any more suggestions.
Comment #2
Steve Dondley commentedI just found a similar but unrelated problem. The fix above took care of drag and drop. However, an error was spit back by GR when uploading an image. The error was something to the effect that the user did not have permission to publish to the gallery.
So, I hacked this one by simply putting the following line:
return TRUE;
I put this immediately after line 162. Hopefully someone will come up with the right fix for these permission problems.
Comment #3
egfrith commentedI think this is a duplicate of #204209: User authentification does not work under Gallery Remote.