Browse Source

屏蔽超级管理员

sunhao 5 years ago
parent
commit
f3c061b69b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Admin/AdminController.php

+ 1 - 1
app/Http/Controllers/Admin/AdminController.php

@@ -30,7 +30,7 @@ class AdminController extends Controller
30 30
      */
31 31
     public function all()
32 32
     {
33
-        $admin = Admin::get();
33
+        $admin = Admin::where('id','>',1)->get();
34 34
         foreach($admin as $item){
35 35
             #获取团队
36 36
             $team = DB::table('teams')->select('name')->where('id', $item->team_id)->first();