From e906ff9be120d2ca305e446e95f193f9845e386e Mon Sep 17 00:00:00 2001 From: Gsangu Date: Sat, 29 Dec 2018 09:31:07 +0800 Subject: [PATCH] fix : permission error --- app/Http/Middleware/CheckRole.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Middleware/CheckRole.php b/app/Http/Middleware/CheckRole.php index cd7f8fe..56f347c 100644 --- a/app/Http/Middleware/CheckRole.php +++ b/app/Http/Middleware/CheckRole.php @@ -23,6 +23,7 @@ public function handle($request, Closure $next, $role) throw new UnauthorizedHttpException('jwt-auth', '登录失效'); } if (!$role) { + $this->saveSystemLogs($request); $next($request); } $roles = explode('|', $role);