mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
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
1c46cab424
commit
2221dce997
@ -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>
|
2011-02-17 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* include/help/en/help_agent_status.php,
|
* include/help/en/help_agent_status.php,
|
||||||
|
@ -80,8 +80,13 @@ $defaultMapId = null;
|
|||||||
if (!$maps) {
|
if (!$maps) {
|
||||||
echo '<div class="nf">'.('No maps defined').'</div>';
|
echo '<div class="nf">'.('No maps defined').'</div>';
|
||||||
} else {
|
} else {
|
||||||
|
$own_info = get_user_info($config['id_user']);
|
||||||
foreach ($maps as $map) {
|
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;
|
$checked = false;
|
||||||
if ($map['default_map']) {
|
if ($map['default_map']) {
|
||||||
$checked = true;
|
$checked = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user