Merge pull request #9769 from scardinius/crm-19958
[civicrm-core.git] / CRM / Contact / BAO / Group.php
index fe781a5cc35baf0442c8b73bb6f51b93e38f9ddd..aab9bc9cd9f7d7102b4d1385c8826d6ed3a8bd7e 100644 (file)
@@ -900,7 +900,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
     $visibility = CRM_Core_SelectValues::ufVisibility();
 
     while ($object->fetch()) {
-      $permission = CRM_Contact_BAO_Group::checkPermission($object->id, $object->title);
+      $permission = CRM_Contact_BAO_Group::checkPermission($object->id, TRUE);
       //@todo CRM-12209 introduced an ACL check in the whereClause function
       // it may be that this checking is now obsolete - or that what remains
       // should be removed to the whereClause (which is also accessed by getCount)