re #108 $roleParams was not defined in scope
This commit is contained in:
@ -43,9 +43,11 @@ class AccessRuleFilter extends AccessRule
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if (!isset($roleParams)) {
|
||||
$roleParams = $this->roleParams instanceof Closure ? call_user_func($this->roleParams, $this) : $this->roleParams;
|
||||
}
|
||||
|
||||
$roleParams = $this->roleParams instanceof Closure
|
||||
? call_user_func($this->roleParams, $this)
|
||||
: $this->roleParams;
|
||||
|
||||
if ($user->can($role, $roleParams)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user