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