/**
* 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.'));
}
/**