The location information is visible to Admin, but not to registered users with the correct permissions.

Comments

mr.andrey’s picture

I'm experiencing the same problem. Admin user can see everyone's Location data in the account/profile, but not regular registered users. Regular users can only see their own location.

Is anyone else experiencing this problem?

mr.andrey’s picture

Here's a quick fix for this. It will display location on user's profiles if the current user has the permissions to "submit latitude/longitude", as opposed to perms to "administer users". Ideally there would be a new perm checkbox that says "view users' location", but this works for me for now.

in location.module, find this line:

if ($user_setting == LOCATION_USER_COLLECT && $op == 'view' && (user_access('administer users') || $GLOBALS['user']->uid == $user->uid) && variable_get('location_display_location', 1) && !_location_is_empty($user->location)) {

... and replace with this:

if ($user_setting == LOCATION_USER_COLLECT && $op == 'view' && (user_access('submit
 latitude/longitude') || $GLOBALS['user']->uid == $user->uid) && variable_get('location_display_location', 1) && !_location_is_empty($user->location)) {

Andrey.

bdragon’s picture

Status: Active » Fixed

In 3.x there is a 'view all user locations' permission.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.