Posted by JaredAM on June 21, 2009 at 3:13am
Jump to:
| Project: | Google Maps location |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | babbage |
| Status: | closed (fixed) |
Issue Summary
The menu admin/settings/gmaplocation will only work for User 1.
The menu has access argument as:
$items['admin/settings/gmaplocation'] = array(
'title' => 'Google Maps location',
'description' => 'Configure Google Maps location.',
'page callback' => 'drupal_get_form',
'page arguments' => array('gmaplocation_admin_settings'),
'access callback' => 'user_access',
'access arguments' => array('admin gmaplocation'), // <-------- should be "edit gmaplocation" to match the hook_perm
'type' => MENU_NORMAL_ITEM,
);
Comments
#1
Well spotted. Fixed in http://drupal.org/cvs?commit=228186
#2
Automatically closed -- issue fixed for 2 weeks with no activity.