Allow extension of init()

This commit is contained in:
Ingo Schommer 2013-12-18 16:07:37 +01:00
parent bfb6ee04c8
commit 20efb0c6fa

View File

@ -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"))