Zhouzhendong 5 年之前
父节点
当前提交
de302845d8
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      app/Providers/AuthServiceProvider.php

+ 0 - 3
app/Providers/AuthServiceProvider.php

@@ -40,9 +40,6 @@ class AuthServiceProvider extends ServiceProvider
     public function boot()
     public function boot()
     {
     {
         $this->registerPolicies();
         $this->registerPolicies();
-        Gate::before(function ($user) {
-            return true;
-        });
         $isSuperAdmin = null;
         $isSuperAdmin = null;
         if(!Schema::hasTable('users')){return;}
         if(!Schema::hasTable('users')){return;}
         /** @var CacheService $cacheService */
         /** @var CacheService $cacheService */