Index: location.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.module,v
retrieving revision 1.222.2.20
diff -u -r1.222.2.20 location.module
--- location.module	3 Mar 2009 20:07:19 -0000	1.222.2.20
+++ location.module	13 Oct 2009 11:36:05 -0000
@@ -86,7 +86,7 @@
  */
 function location_perm() {
   return array(
-    'submit latitude/longitude',
+    'submit latitude/longitude', 'view user list', 'view location list'
   );
 }
 
Index: location.views_default.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/location/location.views_default.inc,v
retrieving revision 1.5
diff -u -r1.5 location.views_default.inc
--- location.views_default.inc	22 Oct 2008 17:28:48 -0000	1.5
+++ location.views_default.inc	13 Oct 2009 11:39:52 -0000
@@ -169,6 +169,10 @@
     'default' => '-1',
   ));
   $handler = $view->new_display('page', 'Page', 'page_1');
+  $handler->override_option('access', array(
+    'type' => 'perm',
+    'perm' => 'view location list',
+  ));
   $handler->override_option('path', 'location/views');
   $handler->override_option('menu', array(
     'type' => 'normal',
@@ -601,6 +605,10 @@
     'default' => '-1',
   ));
   $handler = $view->new_display('page', 'Page', 'page_1');
+  $handler->override_option('access', array(
+    'type' => 'perm',
+    'perm' => 'view user list',
+  ));
   $handler->override_option('path', 'location/users');
   $handler->override_option('menu', array(
     'type' => 'normal',

