Commit 701852e9 by Luciano Baraglia

AccessControl denyCallback call fix

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