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: ensure authorization checks are in place for viewing and updating the application
Andras Bacsai6e8c557ed3f9
diff --git a/app/Livewire/Project/Service/EditDomain.php b/app/Livewire/Project/Service/EditDomain.phpindex 9f526c9647..c45386d2ee 100644--- a/app/Livewire/Project/Service/EditDomain.php+++ b/app/Livewire/Project/Service/EditDomain.php@@ -26,7 +26,8 @@ class EditDomain extends Componentpublic function mount(){- $this->application = ServiceApplication::find($this->applicationId);+ $this->application = ServiceApplication::query()->findOrFail($this->applicationId);+ $this->authorize('view', $this->application);$this->syncData(false);}@@ -49,6 +50,7 @@ class EditDomain extends Componentpublic function submit(){try {+ $this->authorize('update', $this->application);$this->fqdn = str($this->fqdn)->replaceEnd(',', '')->trim()->toString();$this->fqdn = str($this->fqdn)->replaceStart(',', '')->trim()->toString();$domains = str($this->fqdn)->trim()->explode(',')->map(function ($domain) {