Skip to content

Commit

Permalink
Merge pull request #13505 from mattwire/caseview_fatalerror
Browse files Browse the repository at this point in the history
Display error instead of fatal error when trying to view a case that you don't have permission to access
  • Loading branch information
eileenmcnaughton authored Jan 27, 2019
2 parents cfdc04c + f28d3b6 commit a2aecef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Case/Form/CaseView.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function preProcess() {

// Access check.
if (!CRM_Case_BAO_Case::accessCase($this->_caseID, FALSE)) {
CRM_Core_Error::fatal(ts('You are not authorized to access this page.'));
CRM_Core_Error::statusBounce(ts('You do not have permission to access this case.'));
}

$fulltext = CRM_Utils_Request::retrieve('context', 'Alphanumeric');
Expand Down

0 comments on commit a2aecef

Please sign in to comment.