Posted by drupal92037 on November 26, 2009 at 7:34am
In admin->user settings->permissions->gmap, there are 4 types of user permissions:
set user location
show node map
show user map
user locationsI think I understand the first 3. But what does the 4th one mean?
Thanks.
Comments
Allows user to see who each marker represents on map/user page.
Only users with this permission are allowed to see the user information for each map marker on the map/user map page. (At least that's what the code says.) So you can use this to prevent Anon users from seeing user info from the map page. If a visitor doesn't have this permission, the map markers don't show any per-user info, and they don't allow a click to go to the marker's associated user page.
From gmap_location.module (Drupal 5.x-1.0 release).
<?php/**
* Draws a page with a google map that has all of the site users.
*/
function gmap_location_user_page() {
... SNIP ...
// Users with the 'user locations' permission are allowed to see who
// each marker represents.
?>
Also seems to be used when Organic Groups (OG) is present and enabled.
<?php/**
* Draws a page with a google map with the node on it, or if no node is set all of the nodes on it.
*
* @param $nid
* The node nid to draw on the map.
* If this is not set, or is null then all of the nodes will be drawn.
*/
function gmap_location_node_page($nid = NULL) {
.. snip ..
// Organic groups. Group nodes are displayed as a map of the users who belong to the group.
if (user_access('user locations') && function_exists('og_is_group_type') && og_is_group_type($node->type)) {
?>
Michael Curry
Drupal and Windows Tips