From 0767ff2c4f53718c8a8825ea1beaa346646ce2b0 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 10 Jun 2025 11:10:06 +0200 Subject: [PATCH] fix(web): update user team retrieval method for consistent authentication handling --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index d04d93db0..564ecbb31 100644 --- a/routes/web.php +++ b/routes/web.php @@ -291,8 +291,8 @@ Route::middleware(['auth'])->group(function () { Route::post('/upload/backup/{databaseUuid}', [UploadController::class, 'upload'])->name('upload.backup'); Route::get('/download/backup/{executionId}', function () { try { - $team = auth()->user()->currentTeam(); $user = auth()->user(); + $team = $user->currentTeam(); if (is_null($team)) { return response()->json(['message' => 'Team not found.'], 404); }