change api
This commit is contained in:
parent
652d01a39a
commit
6712999a8e
|
@ -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']];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user