From c7d7a3ce3659d31aa82ca9bf82ffb55d80a004c6 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 10 Oct 2013 13:53:12 +0400 Subject: [PATCH] Fixed missing error page when AccessControl is used with default deny rule --- framework/yii/web/AccessControl.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/yii/web/AccessControl.php b/framework/yii/web/AccessControl.php index 7f791b8..75e2dc9 100644 --- a/framework/yii/web/AccessControl.php +++ b/framework/yii/web/AccessControl.php @@ -119,6 +119,12 @@ class AccessControl extends ActionFilter return false; } } + if (isset($this->denyCallback)) { + call_user_func($this->denyCallback, $rule); + } + else { + $this->denyAccess($user); + } return false; }