Эх сурвалжийг харах

删除误提交的本地设置

Zhouzhendong 5 жил өмнө
parent
commit
7049db80d6

+ 1 - 3
app/Providers/AuthServiceProvider.php

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