User Access Permission

JaredAM - June 21, 2009 - 03:13
Project:Google Maps location
Version:6.x-1.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:dbabbage
Status:closed
Description

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,
  ); 

#1

dbabbage - June 22, 2009 - 11:21
Assigned to:Anonymous» dbabbage
Status:active» fixed

Well spotted. Fixed in http://drupal.org/cvs?commit=228186

#2

System Message - July 6, 2009 - 11:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.