From c54f5697c5b7753a8510c5e8e683d82b2290a8de Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 14 Feb 2017 18:01:05 +0530 Subject: [PATCH] CRM-19950 - clean up --- CRM/Contact/Page/SavedSearch.php | 2 +- CRM/Group/Page/Group.php | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/CRM/Contact/Page/SavedSearch.php b/CRM/Contact/Page/SavedSearch.php index 08841d861c..a00d131d4c 100644 --- a/CRM/Contact/Page/SavedSearch.php +++ b/CRM/Contact/Page/SavedSearch.php @@ -88,7 +88,7 @@ class CRM_Contact_Page_SavedSearch extends CRM_Core_Page { $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 d0f6efddf3..f35492ebf8 100644 --- a/CRM/Group/Page/Group.php +++ b/CRM/Group/Page/Group.php @@ -99,21 +99,6 @@ class CRM_Group_Page_Group extends CRM_Core_Page_Basic { 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); - } - /** * We need to do slightly different things for groups vs saved search groups, hence we * reimplement browse from Page_Basic -- 2.25.1