Update CheckRole.php
This commit is contained in:
parent
8742be99ce
commit
2b9569d642
|
@ -22,7 +22,7 @@ class CheckRole
|
|||
return $next($request);
|
||||
}
|
||||
|
||||
$user = $request->user('auth');
|
||||
$user = $request->user();
|
||||
|
||||
if (empty($user) || empty($user['roles'])) {
|
||||
abort(403, '无权访问');
|
||||
|
|
Loading…
Reference in New Issue
Block a user