diff --git a/app/Traits/HasComapanyId.php b/app/Traits/HasComapanyId.php index 205b421..fbb2fd6 100644 --- a/app/Traits/HasComapanyId.php +++ b/app/Traits/HasComapanyId.php @@ -15,7 +15,7 @@ protected static function bootHasComapanyId() } }); - if (auth()->check()) { + if (! auth()->user()->isSuperAdmin()) { static::addGlobalScope(new CompanyScope); } }