From f57e54826f5ae6f85085d72d438616f39ed06862 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 26 Jul 2019 01:17:14 -0600 Subject: [PATCH] Update groups.php --- core/groups/groups.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/groups/groups.php b/core/groups/groups.php index 1e177d4235..c86ad684b6 100644 --- a/core/groups/groups.php +++ b/core/groups/groups.php @@ -29,8 +29,8 @@ require_once "resources/require.php"; require_once "resources/check_auth.php"; -//check the permissions - if (if_group("admin") || if_group("superadmin")) { +//check permissions + if (permission_exists('group_all')) { //access allowed } else { @@ -83,7 +83,6 @@ //$system_groups = array('superadmin','admin','user','public','agent'); $system_groups = array(); - //get group counts $sql = "select group_uuid, count(user_uuid) as group_count from v_user_groups "; if (!permission_exists('user_all')) {