Index: login_destination.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/login_destination/login_destination.module,v
retrieving revision 1.7
diff -u -p -r1.7 login_destination.module
--- login_destination.module	6 Sep 2007 10:29:10 -0000	1.7
+++ login_destination.module	26 Oct 2008 15:06:32 -0000
@@ -10,6 +10,13 @@ define('LOGIN_COND_PAGES', 'pages');
 define('LOGIN_COND_SNIPPET', 'snippet');
 
 /**
+* Implementation of hook_perm().
+*/
+function login_destination_perm() {
+  return array('administer login destination');
+}
+
+/**
  * Implementation of hook_form_alter().
  */
 function login_destination_form_alter(&$form, $form_state, $form_id) {
@@ -28,11 +35,13 @@ function login_destination_get_destinati
  */
 function login_destination_menu() {
 
-  $items['admin/user/login_destination'] = array(
+$items['admin/user/login_destination'] = array(
     'title' => 'Login destination',
     'description' => 'Configure where user will go after login.',
     'page callback' => 'drupal_get_form',
     'page arguments' => array('login_destination_admin_settings'),
+    'access callback' => 'user_access',
+    'access arguments' => array('administer login destination'),
   );
 
   $items['login_redirect'] = array(
