Merge branch 'ent-6645-bug-acl-discovery-tasks' into 'develop'
Fixed acl on discovery tasklist See merge request artica/pandorafms!3618
This commit is contained in:
commit
ea86889673
|
@ -450,6 +450,10 @@ class DiscoveryTaskList extends HTML
|
|||
$table->align[9] = 'left';
|
||||
|
||||
foreach ($recon_tasks as $task) {
|
||||
if ($this->aclMulticheck('AR|AW|AM', $task['id_group']) === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$no_operations = false;
|
||||
$data = [];
|
||||
$server_name = servers_get_name($task['id_recon_server']);
|
||||
|
|
|
@ -254,7 +254,7 @@ class HTML
|
|||
*
|
||||
* @return boolean Alowed or not.
|
||||
*/
|
||||
public function aclMulticheck($access=null)
|
||||
public function aclMulticheck($access=null, $id_group=0)
|
||||
{
|
||||
global $config;
|
||||
|
||||
|
@ -268,7 +268,7 @@ class HTML
|
|||
foreach ($perms as $perm) {
|
||||
$allowed = $allowed || (bool) check_acl(
|
||||
$config['id_user'],
|
||||
0,
|
||||
$id_group,
|
||||
$perm
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue