Commit 701852e9 by Luciano Baraglia

AccessControl denyCallback call fix

parent 1181b7b9
......@@ -108,9 +108,9 @@ class AccessControl extends ActionFilter
return true;
} elseif ($allow === false) {
if (isset($rule->denyCallback)) {
call_user_func($rule->denyCallback, $rule);
call_user_func($rule->denyCallback, $rule, $action);
} elseif (isset($this->denyCallback)) {
call_user_func($this->denyCallback, $rule);
call_user_func($this->denyCallback, $rule, $action);
} else {
$this->denyAccess($user);
}
......@@ -118,9 +118,8 @@ class AccessControl extends ActionFilter
}
}
if (isset($this->denyCallback)) {
call_user_func($this->denyCallback, $rule);
}
else {
call_user_func($this->denyCallback, $rule, $action);
} else {
$this->denyAccess($user);
}
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