Closed (duplicate)
Project:
GeoUser
Version:
6.x-1.7-beta7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2010 at 07:53 UTC
Updated:
18 May 2012 at 21:49 UTC
After installing geouser and navigating to admin/settings/geouser, I get access denied as the Drupal super user.
Adding access arguments to the geouser_menu function solves the problem.
$items['admin/settings/geouser'] = array(
'title' => t("GeoUser"),
'description' => t("Retrieve user's geographic information based on her ip address, and display a yahoo map on user page."),
'page callback' => 'drupal_get_form',
'page arguments' => array('geouser_admin_settings'),
'access arguments' => array('administer site configuration'),
'file' => 'geouser.admin.inc',
);
Also, I'm not sure it's necessary to explicitly clear the menu cache in your menu hook.
Comments
Comment #1
tinohuda commentedI use 6.x-1.7-beta7 and clear the cache but IP data doesn't collected only username.
Comment #2
emarchak commentedaacraig's fix worked for me. It seems like this is also a duplicate issue of #859844: Settings/Configuration page returns Access denied to User 1.
Comment #3
cooldeeponline commentedClearing the cache did it for me... the cahce, menu cahce etc.. thank you!