BUGFIX Fixed reverted access checks in Controller->handleAction() due to merge error

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60219 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-08-09 05:21:54 +00:00
parent d6967f10f1
commit 76bfb05bda

View File

@ -97,7 +97,7 @@ class Controller extends RequestHandlingData {
$methodName = $this->action;
// run & init are manually disabled, because they create infinite loops and other dodgy situations
if(!$this->checkAccessAction($this->action) || in_array(strtolower($this->action), array('run', 'init'))) {
if($this->checkAccessAction($this->action) && !in_array(strtolower($this->action), array('run', 'init'))) {
if($this->hasMethod($methodName)) {
$result = $this->$methodName($request);