Merge pull request #15790 from civicrm/5.20
[civicrm-core.git] / CRM / Utils / System / Joomla.php
index ce67ed26f560e3f135d7015af3f863e73a5f05c8..956dd83670e98c0014b54a41b8636fd5c4cc095a 100644 (file)
@@ -473,9 +473,10 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
 
   /**
    * FIXME: Use CMS-native approach
+   * @throws \CRM_Core_Exception.
    */
   public function permissionDenied() {
-    CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
+    throw new CRM_Core_Exception(ts('You do not have permission to access this page.'));
   }
 
   /**