2011-01-27 Miguel de Dios <miguel.dedios@artica.es>

* operation/search_agents.php: refixed the order of parentheses.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3782 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2011-01-27 12:27:06 +00:00
parent 9143bda63b
commit bb90e101bc
2 changed files with 36 additions and 32 deletions
pandora_console

View File

@ -1,3 +1,7 @@
2011-01-27 Miguel de Dios <miguel.dedios@artica.es>
* operation/search_agents.php: refixed the order of parentheses.
2011-01-26 Sancho Lerena <slerena@artica.es>
* ssh_console: new ssh extension (agent tab extension) it will exec a

View File

@ -109,13 +109,13 @@ if ($searchAgents) {
FROM tagente AS t1
INNER JOIN tgrupo AS t2
ON t2.id_grupo = t1.id_grupo
WHERE
(1 = (
SELECT is_admin FROM tusuario WHERE id_user = '" . $config['id_user'] . "'
WHERE (
1 = (
SELECT is_admin
FROM tusuario
WHERE id_user = '" . $config['id_user'] . "'
)
)
OR
(t1.id_grupo IN (
OR t1.id_grupo IN (
SELECT id_grupo
FROM tusuario_perfil
WHERE id_usuario = '" . $config['id_user'] . "'