remove "By location" search tab
mariuss - August 26, 2007 - 06:04
| Project: | location (API, module) |
| Version: | 5.x-2.7 |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The "By location" search tab shows up in all cases for the admin user, even if the module is not configured to do that.
The Location module is used by other modules (like See Map) and in some cases this "By location" tab does not make sense. If user location is disabled and no content type collects location, then there is nothing you can search by location.

#1
The admin user (user id 1) generally has all permissions granted, regardless of what you configured. This is partly for convenience and also to avoid situations where a site admin can lock themselves out of their own site by screwing up permissions.
so user id 1 will always be able to search by location no matter if you remove that permission, but other users will not.
#2
I refactored search out to its own module, so you can turn this off completely as necessary.
#3
http://drupal.org/node/64012 marked dupe.
#4
Automatically closed -- issue fixed for two weeks with no activity.