projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #15815 from artfulrobot/issue-1108-fix-unsubscribe
[civicrm-core.git]
/
CRM
/
Utils
/
System
/
Base.php
diff --git
a/CRM/Utils/System/Base.php
b/CRM/Utils/System/Base.php
index 0dca55f65783de6748b4d123644fcfb4a0c467c8..8f16278794ae39a4f629981a23bd4c55f7c84447 100644
(file)
--- a/
CRM/Utils/System/Base.php
+++ b/
CRM/Utils/System/Base.php
@@
-152,6
+152,7
@@
abstract class CRM_Utils_System_Base {
*
* @return array|bool
* [contactID, ufID, unique string] else false if no auth
*
* @return array|bool
* [contactID, ufID, unique string] else false if no auth
+ * @throws \CRM_Core_Exception.
*/
public function authenticate($name, $password, $loadCMSBootstrap = FALSE, $realPath = NULL) {
return FALSE;
*/
public function authenticate($name, $password, $loadCMSBootstrap = FALSE, $realPath = NULL) {
return FALSE;
@@
-179,9
+180,10
@@
abstract class CRM_Utils_System_Base {
/**
* Immediately stop script execution and display a 401 "Access Denied" page.
/**
* Immediately stop script execution and display a 401 "Access Denied" page.
+ * @throws \CRM_Core_Exception
*/
public function permissionDenied() {
*/
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.'));
}
/**
}
/**