mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
visual fixes
This commit is contained in:
parent
def59508ae
commit
cd52b30eb5
@ -32,7 +32,7 @@ $action = get_parameter('action', 'new_map');
|
|||||||
|
|
||||||
$gis_map_group = db_get_value('group_id', 'tgis_map', 'id_tgis_map', $idMap);
|
$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');
|
db_pandora_audit('ACL Violation', 'Trying to access map builder');
|
||||||
include 'general/noaccess.php';
|
include 'general/noaccess.php';
|
||||||
return;
|
return;
|
||||||
|
@ -170,9 +170,16 @@ if ($maps !== false) {
|
|||||||
$data['name'] = '<a href="index.php?sec=gismaps&sec2=operation/gis_maps/render_view&map_id='.$map['id_tgis_map'].'">'.$map['map_name'].'</a> ';
|
$data['name'] = '<a href="index.php?sec=gismaps&sec2=operation/gis_maps/render_view&map_id='.$map['id_tgis_map'].'">'.$map['map_name'].'</a> ';
|
||||||
$data['group'] = ui_print_group_icon($map['group_id'], true);
|
$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')) {
|
if (check_acl_restricted_all($config['id_user'], 0, 'MM')) {
|
||||||
$checked = false;
|
$checked = false;
|
||||||
if ($map['default_map']) {
|
if ($map['default_map']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user