From 8aace6af48435d110e1cb6df4b924adacaf08990 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Sun, 30 Dec 2018 23:36:59 -0500 Subject: [PATCH] fixes core#580 - view all groups when appropriately permissioned --- CRM/ACL/BAO/ACL.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/ACL/BAO/ACL.php b/CRM/ACL/BAO/ACL.php index a2ac22df25..201454fc9e 100644 --- a/CRM/ACL/BAO/ACL.php +++ b/CRM/ACL/BAO/ACL.php @@ -870,6 +870,10 @@ SELECT g.* return Civi::$statics[__CLASS__]['permissioned_groups'][$userCacheKey]; } + if ($allGroups == NULL) { + $allGroups = CRM_Core_PseudoConstant::allGroup(); + } + $acls = CRM_ACL_BAO_Cache::build($contactID); $ids = array(); -- 2.25.1