visual fixes

This commit is contained in:
alejandro-campos 2020-10-22 15:47:39 +02:00
parent def59508ae
commit cd52b30eb5
2 changed files with 10 additions and 3 deletions

View File

@ -32,7 +32,7 @@ $action = get_parameter('action', 'new_map');
$gis_map_group = db_get_value('group_id', 'tgis_map', 'id_tgis_map', $idMap);
if (!check_acl_restricted_all($config['id_user'], $gis_map_group, 'MW') && !check_acl_restricted_all($config['id_user'], $gis_map_group, 'MW')) {
if ($idMap > 0 && !check_acl_restricted_all($config['id_user'], $gis_map_group, 'MW') && !check_acl_restricted_all($config['id_user'], $gis_map_group, 'MW')) {
db_pandora_audit('ACL Violation', 'Trying to access map builder');
include 'general/noaccess.php';
return;

View File

@ -170,9 +170,16 @@ if ($maps !== false) {
$data['name'] = '<a href="index.php?sec=gismaps&amp;sec2=operation/gis_maps/render_view&amp;map_id='.$map['id_tgis_map'].'">'.$map['map_name'].'</a> ';
$data['group'] = ui_print_group_icon($map['group_id'], true);
$data['op'] = '';
if (check_acl($config['id_user'], 0, 'MW')
|| check_acl($config['id_user'], 0, 'MM')
) {
$data['default'] = '';
$data['op'] = '';
}
if (check_acl_restricted_all($config['id_user'], $map['group_id'], 'MW') || check_acl_restricted_all($config['id_user'], $map['group_id'], 'MM')) {
if (check_acl_restricted_all($config['id_user'], $map['group_id'], 'MW')
|| check_acl_restricted_all($config['id_user'], $map['group_id'], 'MM')
) {
if (check_acl_restricted_all($config['id_user'], 0, 'MM')) {
$checked = false;
if ($map['default_map']) {