Skip to content

Commit

Permalink
Merge pull request civicrm#9832 from yashodha/CRM-19950
Browse files Browse the repository at this point in the history
CRM-19950 - more clean up
  • Loading branch information
eileenmcnaughton authored Feb 13, 2017
2 parents 21e44ef + 63d80ec commit 33460ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion CRM/Contact/Page/SavedSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
15 changes: 0 additions & 15 deletions CRM/Group/Page/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 33460ea

Please sign in to comment.