Show error popup and return to dashboard instead of showing fatal error page when...
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Fri, 25 Jan 2019 11:58:35 +0000 (11:58 +0000)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Fri, 25 Jan 2019 11:58:35 +0000 (11:58 +0000)
CRM/Case/Form/CaseView.php

index 642aeaa059fa38a88c8757217147091e8cdc8d9b..cd386d276bac0cf0eb521b82118ac406a7234bab 100644 (file)
@@ -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');