Closed (fixed)
Project:
Flickr API
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Oct 2011 at 22:32 UTC
Updated:
16 Apr 2012 at 21:31 UTC
Jump to comment: Most recent file
flickrapi_phpFlickr(), which sets up the phpFlickr object, makes a call to user_access("Administer global flickr api settings'). This permission has not been set up using hook_perm(). The module's admin settings form checks for 'administer site configuration' instead.
The bug has probably been overlooked because most users administering the module will be user 1.
I will append my patch to a comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | permissions-1320280-1.patch | 1.73 KB | hughbris |
Comments
Comment #1
hughbris commentedThe attached patch amends the permission referenced in a
user_access()to all lower case ("administer global flickr api settings"). It adds ahook_perm()to implement it. It also uses the permission as access arguments for the module's admin settings form in the module's menu.Comment #2
BarisW commentedPatch looks good. Thanks ;)
Comment #3
BarisW commentedAlready fixed in the 7.x-1.2 release, will be backported in the 6.x branch.
Comment #4
BarisW commentedCommitted. Thanks!