fixes core#580 - view all groups when appropriately permissioned
authorJon Goldberg <jon@megaphonetech.com>
Mon, 31 Dec 2018 04:36:59 +0000 (23:36 -0500)
committerJon Goldberg <jon@megaphonetech.com>
Mon, 31 Dec 2018 04:36:59 +0000 (23:36 -0500)
CRM/ACL/BAO/ACL.php

index a2ac22df250a730fbb5f341845602d3a6ad1d3d5..201454fc9e44da19855a585606d962d121069415 100644 (file)
@@ -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();