bug fix
This commit is contained in:
parent
074ba0d93e
commit
cab65e7709
|
@ -73,10 +73,10 @@ class Authenticate
|
|||
$match = [];
|
||||
foreach ($user['roles'] as $role) {
|
||||
if (array_key_exists($role['role']['role'], $privileges)) {
|
||||
$match = $privileges[$role['role']['role']];
|
||||
$match += $privileges[$role['role']['role']];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (in_array($path, $match)) {
|
||||
return $next($request);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user