Skip to content

Commit

Permalink
Update HasComapanyId.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpetGexha committed Jun 25, 2023
1 parent c337e43 commit 8aa16b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Traits/HasComapanyId.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected static function bootHasComapanyId()
}
});

if (auth()->check()) {
if (! auth()->user()->isSuperAdmin()) {
static::addGlobalScope(new CompanyScope);
}
}
Expand Down

0 comments on commit 8aa16b6

Please sign in to comment.