Tokumeikoi 5 年之前
父节点
当前提交
37844c1bb4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Client/ClientController.php

+ 1 - 1
app/Http/Controllers/Client/ClientController.php

@@ -14,7 +14,7 @@ class ClientController extends Controller
     {
         $user = $request->user;
         $server = [];
-        if ($user->expired_at > time()) {
+        if ($user->expired_at > time() && !$user->banned) {
             $servers = Server::where('show', 1)
                 ->orderBy('name')
                 ->get();