diff --git a/CRM/Contact/Page/SavedSearch.php b/CRM/Contact/Page/SavedSearch.php index 950531d28b6d..ab9f39bd2dee 100644 --- a/CRM/Contact/Page/SavedSearch.php +++ b/CRM/Contact/Page/SavedSearch.php @@ -83,7 +83,7 @@ public function browse() { $group = new CRM_Contact_DAO_Group(); $group->saved_search_id = $savedSearch->id; if ($group->find(TRUE)) { - $permissions = CRM_Group_Page_Group::checkPermission($group->id, $group->title); + $permissions = CRM_Contact_BAO_Group::checkPermission($group->id, TRUE); if (!CRM_Utils_System::isNull($permissions)) { $row = array(); diff --git a/CRM/Group/Page/Group.php b/CRM/Group/Page/Group.php index da6e8eec70d0..d78bec5cfcee 100644 --- a/CRM/Group/Page/Group.php +++ b/CRM/Group/Page/Group.php @@ -99,21 +99,6 @@ public function userContextParams($mode = NULL) { return 'reset=1&action=browse'; } - /** - * Make sure that the user has permission to access this group. - * - * @param int $id - * The id of the object. - * @param int $title - * Name or title of the object. - * - * @return string - * the permission that the user has (or null) - */ - public function checkPermission($id, $title) { - return CRM_Contact_BAO_Group::checkPermission($id, $title); - } - /** * Re-implement browse. *