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:
juanmanuelr 2011-11-30 16:31:09 +00:00
parent e7cc7a2ede
commit c6da118aba
2 changed files with 16 additions and 8 deletions

View File

@ -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

View File

@ -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);