cleared code for apply acl permission

This commit is contained in:
Daniel Cebrian 2023-03-02 17:06:16 +01:00
parent af5a620883
commit cdf359481a
2 changed files with 2 additions and 17 deletions
pandora_console
godmode/groups
include

View File

@ -30,16 +30,8 @@ global $config;
check_login();
if (! check_acl($config['id_user'], 0, 'PM')) {
db_pandora_audit(
AUDIT_LOG_ACL_VIOLATION,
'Trying to access Group Management'
);
include 'general/noaccess.php';
return;
}
$id_group = get_parameter('id', '');
$id_group = get_parameter('id_group', '');
if (empty($id_group) === true) {
return;
}

View File

@ -5418,14 +5418,7 @@ function graph_events_agent_by_group($id_group, $width=300, $height=200, $noWate
define('NUM_PIECES_PIE_2', 6);
// Add tags condition to filter.
$tags_condition = tags_get_acl_tags(
$config['id_user'],
0,
'ER',
'event_condition',
'AND'
);
$tags_condition = '';
if ($time_limit && $config['event_view_hr']) {
$tags_condition .= ' AND utimestamp > (UNIX_TIMESTAMP(NOW()) - '.($config['event_view_hr'] * SECONDS_1HOUR).')';
}