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: cannot delete resource when you are not on root team
Andras Bacsaic0940f7a1914
diff --git a/apps/api/src/routes/api/v1/applications/handlers.ts b/apps/api/src/routes/api/v1/applications/handlers.tsindex 8d8f3ead2e..886b7bc88c 100644--- a/apps/api/src/routes/api/v1/applications/handlers.ts+++ b/apps/api/src/routes/api/v1/applications/handlers.ts@@ -736,7 +736,7 @@ export async function deleteApplication(where: { id },include: { destinationDocker: true, teams: true }});- if (teamId !== '0' || !application.teams.some((team) => team.id === teamId)) {+ if (teamId !== '0' && !application.teams.some((team) => team.id === teamId)) {throw { status: 403, message: 'You are not allowed to delete this application.' };}if (application?.destinationDocker?.id && application.destinationDocker?.network) {