This commit is contained in:
候学杰 2018-01-23 11:16:16 +08:00
parent cab65e7709
commit 462b63e10d

View File

@ -73,7 +73,7 @@ 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']['key']];
} }
} }