change api

This commit is contained in:
候学杰 2018-02-01 17:13:36 +08:00
parent 652d01a39a
commit 6712999a8e

View File

@ -72,7 +72,7 @@ class Authenticate
$user = $request->user();
$match = [];
foreach ($user['roles'] as $role) {
if (array_key_exists($role['role']['key'], $privileges)) {
if (array_key_exists($role, $privileges)) {
$match += $privileges[$role['role']['key']];
}
}