mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
BUGFIX Use httpError() in EnvironmentChecker
Security::permissionFailure() relies on the object extending Controller, not RequestHandler, since it wants to use the redirect() API.
This commit is contained in:
parent
edc433793b
commit
0e8d61869a
@ -31,7 +31,7 @@ class EnvironmentChecker extends RequestHandler {
|
|||||||
function init() {
|
function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
if(!$this->canAccess()) return Security::permissionFailure($this);
|
if(!$this->canAccess()) return $this->httpError(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
function canAccess($member = null) {
|
function canAccess($member = null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user