2011-07-21 Sergio Martin <sergio.martin@artica.es>
* operation/agentes/status_monitor.php: Fixed an empty group check and a subquery_enterprise not exist variables for bug 3371206 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4611 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e56a79a69e
commit
07bf8db69c
|
@ -1,3 +1,8 @@
|
|||
2011-07-21 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/agentes/status_monitor.php: Fixed an empty group check
|
||||
and a subquery_enterprise not exist variables for bug 3371206
|
||||
|
||||
2011-07-21 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* extras/pandoradb_migrate_v3.2_to_v4.0.sql: Removed already existing
|
||||
|
|
|
@ -39,6 +39,10 @@ if (ENTERPRISE_NOT_HOOK !== $isFunctionPolicies) {
|
|||
$subquery_enterprise = subquery_acl_enterprise();
|
||||
$subquery_enterprise2 = subquery_acl_enterprise('AND', 'tagente.id_agente');
|
||||
}
|
||||
else {
|
||||
$subquery_enterprise = '';
|
||||
$subquery_enterprise2 = '';
|
||||
}
|
||||
|
||||
ui_print_page_header ("Monitor detail", "images/brick.png", false);
|
||||
|
||||
|
@ -200,7 +204,7 @@ $sql = " FROM tagente, tagente_modulo, tagente_estado
|
|||
if ($ag_group > 0 && check_acl ($config["id_user"], $ag_group, "AR")) {
|
||||
$sql .= sprintf (" AND tagente.id_grupo = %d", $ag_group);
|
||||
}
|
||||
else {
|
||||
elseif($user_groups != '') {
|
||||
// User has explicit permission on group 1 ?
|
||||
$sql .= " AND tagente.id_grupo IN (".$user_groups.")";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue