diff --git a/src/helpers.php b/src/helpers.php index c812881..a55f298 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -18,7 +18,7 @@ function team(string $code): ?Team if (!function_exists('Savannabits\Saas\current_team')) { function current_team(): ?Team { - return Auth::check() ? Auth::user()->team : null; + return Auth::check() ? Auth::user()->team : system_user()->team; } }