Closed (fixed)
Project:
Imagefield Gallery
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
11 Apr 2008 at 05:20 UTC
Updated:
8 Aug 2008 at 05:42 UTC
hook_menu uses user_access('access administration pages') for admin/settings/imagefield_gallery and admin/settings/imagefield_gallery_content_types.
I don't believe this is fine grained enough control. I want to allow a user to access administration pages, but not have access to imagefield_gallery administration pages.
Attached a patch that implements hook_perm to expose 'administer imagefield gallery' permission, and use that permission in hook_menu.
Cheers!
| Comment | File | Size | Author |
|---|---|---|---|
| imagefield_gallery_perm.patch | 1.64 KB | benkant |
Comments
Comment #1
acsubscribing
Comment #2
acCan someone please review and commit/deny. The patch works as intended.
Comment #3
eclipsegc commentedI'll include this in the next release, there are a lot of changes coming, so for the moment, just patch as needed, I'll work this into the next revision
Comment #4
acGreat, thanks EclipseGc
Comment #5
eclipsegc commentedThis will be fixed in the next alpha for the 2.x cycle.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.