From eb838c785e1368549579150ad16d31d69980698f Mon Sep 17 00:00:00 2001
From: m-lopez-f <miguel.lopez@artica.es>
Date: Mon, 24 Oct 2016 11:58:57 +0200
Subject: [PATCH] Fixed problems with permissions

---
 pandora_console/operation/agentes/group_view.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pandora_console/operation/agentes/group_view.php b/pandora_console/operation/agentes/group_view.php
index a8e04339c9..1a07ed8a24 100644
--- a/pandora_console/operation/agentes/group_view.php
+++ b/pandora_console/operation/agentes/group_view.php
@@ -137,7 +137,7 @@ echo "</table>";
 
 //Groups and tags
 $result_groups = groupview_get_groups_list($config['id_user'], $strict_user,
-	($agent_a == true) ? 'AR' : ($agent_w == true) ? 'AW' : 'AR', true, true);
+	($agent_a == true) ? 'AR' : (($agent_w == true) ? 'AW' : 'AR'), true, true);
 
 $count = count($result_groups);