$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)
foreach ($groups as $g) {
// CRM-8362: User and User Admin visibility groups should be included in display if user has
// VIEW permission on that group
- $groupPerm = CRM_Contact_BAO_Group::checkPermission($g['group_id'], $g['title']);
+ $groupPerm = CRM_Contact_BAO_Group::checkPermission($g['group_id'], TRUE);
if ($g['visibility'] != 'User and User Admin Only' ||
CRM_Utils_Array::key(CRM_Core_Permission::VIEW, $groupPerm)