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:
javilanz 2011-02-17 17:17:29 +00:00
parent 73193744c6
commit e768b60f80
2 changed files with 11 additions and 1 deletions

View File

@ -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,

View File

@ -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;