2011-11-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_agents.php: Fixed call to agents_get_modules with id_agent = 0. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5218 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e7cc7a2ede
commit
c6da118aba
|
@ -1,3 +1,8 @@
|
|||
2011-11-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_agents.php: Fixed call to agents_get_modules
|
||||
with id_agent = 0.
|
||||
|
||||
2011-11-30 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/agentes/estado_agente.php: Fixed pagination transfer
|
||||
|
|
|
@ -978,12 +978,15 @@ function agents_get_modules ($id_agent = null, $details = false, $filter = false
|
|||
|
||||
$id_agent = safe_int ($id_agent, 1);
|
||||
|
||||
$extra_sql = '';
|
||||
if ($id_agent != 0){
|
||||
$extra_sql = enterprise_hook('policies_get_modules_sql_condition', array($id_agent));
|
||||
if ($extra_sql === ENTERPRISE_NOT_HOOK) {
|
||||
$extra_sql = '';
|
||||
}else if ($extra_sql != '') {
|
||||
$extra_sql .= ' OR ';
|
||||
}
|
||||
}
|
||||
|
||||
$userGroups = users_get_groups($config['id_user'], 'AR', false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue