change api
This commit is contained in:
parent
652d01a39a
commit
6712999a8e
|
@ -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']['key'], $privileges)) {
|
if (array_key_exists($role, $privileges)) {
|
||||||
$match += $privileges[$role['role']['key']];
|
$match += $privileges[$role['role']['key']];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user