2011-02-23 Miguel de Dios <miguel.dedios@artica.es>
* pandora_console/include/functions_db.php: fixed in the function "get_agent_modules" extract the agents when the current user user is admin. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4004 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
058b36f8fb
commit
7db96de1c2
|
@ -1,3 +1,8 @@
|
|||
2011-02-23 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* pandora_console/include/functions_db.php: fixed in the function
|
||||
"get_agent_modules" extract the agents when the current user user is admin.
|
||||
|
||||
2011-02-23 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_config.php: Fixed an error at the momment of accept the
|
||||
|
|
|
@ -707,7 +707,14 @@ function get_agent_modules ($id_agent = null, $details = false, $filter = false,
|
|||
$groups = get_user_groups(false, 'AR', false);
|
||||
$id_groups = array_keys($groups);
|
||||
|
||||
$id_agent = get_db_sql("SELECT id_agente FROM tagente WHERE id_grupo IN (" . implode(',', $id_groups) . ")");
|
||||
$sql = "SELECT id_agente FROM tagente WHERE id_grupo IN (" . implode(',', $id_groups) . ")";
|
||||
$id_agent = get_db_all_rows_sql($sql);
|
||||
|
||||
$temp = array();
|
||||
foreach ($id_agent as $item) {
|
||||
$temp[] = $item['id_agente'];
|
||||
}
|
||||
$id_agent = $temp;
|
||||
}
|
||||
|
||||
$id_agent = safe_int ($id_agent, 1);
|
||||
|
|
Loading…
Reference in New Issue