mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
Allow extension of init()
This commit is contained in:
parent
bfb6ee04c8
commit
20efb0c6fa
@ -24,6 +24,8 @@ class TestSessionController extends Controller {
|
|||||||
public function init() {
|
public function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
|
$this->extend('init');
|
||||||
|
|
||||||
$canAccess = (
|
$canAccess = (
|
||||||
!Director::isLive()
|
!Director::isLive()
|
||||||
&& (Director::isDev() || Director::isTest() || Director::is_cli() || Permission::check("ADMIN"))
|
&& (Director::isDev() || Director::isTest() || Director::is_cli() || Permission::check("ADMIN"))
|
||||||
|
Loading…
Reference in New Issue
Block a user