Skip to content

Commit

Permalink
fix : permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
Gsangu committed Dec 29, 2018
1 parent 26ac9b1 commit e906ff9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Middleware/CheckRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e906ff9

Please sign in to comment.