From f28d3b6a193fe63ede22c6d3079acbc17ef002ed Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Fri, 25 Jan 2019 11:58:35 +0000 Subject: [PATCH] Show error popup and return to dashboard instead of showing fatal error page when trying to access case that you do not have permission for --- CRM/Case/Form/CaseView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Case/Form/CaseView.php b/CRM/Case/Form/CaseView.php index 642aeaa059..cd386d276b 100644 --- a/CRM/Case/Form/CaseView.php +++ b/CRM/Case/Form/CaseView.php @@ -74,7 +74,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form { // 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'); -- 2.25.1