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

tinohuda’s picture

Version: 6.x-1.2 » 6.x-1.7-beta7

I use 6.x-1.7-beta7 and clear the cache but IP data doesn't collected only username.

emarchak’s picture

Status: Active » Closed (duplicate)

aacraig'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.

cooldeeponline’s picture

Clearing the cache did it for me... the cahce, menu cahce etc.. thank you!