This commit is contained in:
候学杰 2018-01-23 11:32:29 +08:00
parent 462b63e10d
commit 652d01a39a

View File

@ -72,7 +72,7 @@ class Authenticate
$user = $request->user(); $user = $request->user();
$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']['key'], $privileges)) {
$match += $privileges[$role['role']['key']]; $match += $privileges[$role['role']['key']];
} }
} }