--- /login_destination.module 2008-06-25 12:22:30.000000000 -0400 +++ /Applications/MAMP/htdocs/drupal6/modules/login_destination/login_destination.module 2008-06-25 12:28:52.000000000 -0400 @@ -24,6 +24,12 @@ function login_destination_get_destinati } /** + * Implementation of hook_perm(). + */ +function login_destination_perm() { + return array('administer login destination'); +} +/** * Implementation of hook_menu(). */ function login_destination_menu() { @@ -33,8 +39,10 @@ function login_destination_menu() { 'description' => 'Configure where user will go after login.', 'page callback' => 'drupal_get_form', 'page arguments' => array('login_destination_admin_settings'), + 'access arguments' => array('administer login destination'), + 'type' => MENU_NORMAL_ITEM ); - + $items['login_redirect'] = array( 'page callback' => 'login_destination_redirect', 'access callback' => TRUE,