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