2011-02-17 Javier Lanz <javier.lanz@artica.es>
* godmode/gis_maps/index.php: Show only user's GIS maps Fix: #3183432 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3904 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
73193744c6
commit
e768b60f80
|
@ -1,3 +1,8 @@
|
|||
2011-02-17 Javier Lanz <javier.lanz@artica.es>
|
||||
* godmode/gis_maps/index.php: Show only user's GIS maps
|
||||
|
||||
Fix: #3183432
|
||||
|
||||
2011-02-17 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* include/help/en/help_agent_status.php,
|
||||
|
|
|
@ -80,8 +80,13 @@ $defaultMapId = null;
|
|||
if (!$maps) {
|
||||
echo '<div class="nf">'.('No maps defined').'</div>';
|
||||
} else {
|
||||
$own_info = get_user_info($config['id_user']);
|
||||
foreach ($maps as $map) {
|
||||
|
||||
if (!check_acl ($config["id_user"], $map["group_id"], "IR")) {
|
||||
continue;
|
||||
}
|
||||
if ($map['group_id'] == 0 && (!$own_info['is_admin'] || !give_acl ($config['id_user'], 0, "PM")))
|
||||
continue;
|
||||
$checked = false;
|
||||
if ($map['default_map']) {
|
||||
$checked = true;
|
||||
|
|
Loading…
Reference in New Issue