An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(web): update user team retrieval method for consistent authentication handling
Andras Bacsai0767ff2c4f53
diff --git a/routes/web.php b/routes/web.phpindex d04d93db0a..564ecbb316 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);}