#10347 cleared code for apply acl permission
This commit is contained in:
parent
af5a620883
commit
cdf359481a
pandora_console
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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).')';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue