re #108 $roleParams was not defined in scope
This commit is contained in:
@ -43,9 +43,11 @@ class AccessRuleFilter extends AccessRule
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} 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)) {
|
if ($user->can($role, $roleParams)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user