From: Jon Goldberg Date: Mon, 31 Dec 2018 04:36:59 +0000 (-0500) Subject: fixes core#580 - view all groups when appropriately permissioned X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8aace6af48435d110e1cb6df4b924adacaf08990;p=civicrm-core.git fixes core#580 - view all groups when appropriately permissioned --- 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();