Swap out fatal for statusBounce for disabled or unpermittted forms
[civicrm-core.git] / CRM / Admin / Form / Options.php
index 0f7db781091f3af04d34944ec59ea8a2c9e9b248..48f0d9ac87d21369d3fa1f515b29906185e5bae3 100644 (file)
@@ -94,7 +94,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
     if ($this->_id && in_array($this->_gName, CRM_Core_OptionGroup::$_domainIDGroups)) {
       $domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'domain_id', 'id');
       if (CRM_Core_Config::domainID() != $domainID) {
-        CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
+        CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.'));
       }
     }
   }