Commit c7d7a3ce by Alexander Makarov

Fixed missing error page when AccessControl is used with default deny rule

parent 6488fe47
...@@ -119,6 +119,12 @@ class AccessControl extends ActionFilter ...@@ -119,6 +119,12 @@ class AccessControl extends ActionFilter
return false; return false;
} }
} }
if (isset($this->denyCallback)) {
call_user_func($this->denyCallback, $rule);
}
else {
$this->denyAccess($user);
}
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment