Update CheckRole.php

This commit is contained in:
候学杰 2019-02-11 15:28:19 +08:00
parent 8742be99ce
commit 2b9569d642

View File

@ -22,7 +22,7 @@ class CheckRole
return $next($request);
}
$user = $request->user('auth');
$user = $request->user();
if (empty($user) || empty($user['roles'])) {
abort(403, '无权访问');