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; }