This commit is contained in:
候学杰 2018-01-10 14:05:56 +08:00
parent 074ba0d93e
commit cab65e7709

View File

@ -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);
} }