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 check for server view in mount method
Andras Bacsai5661c136f575
diff --git a/app/Livewire/SharedVariables/Server/Show.php b/app/Livewire/SharedVariables/Server/Show.phpindex 1dd9f9d462..6078ef36fc 100644--- a/app/Livewire/SharedVariables/Server/Show.php+++ b/app/Livewire/SharedVariables/Server/Show.php@@ -52,9 +52,10 @@ class Show extends Component$serverUuid = request()->route('server_uuid');$teamId = currentTeam()->id;$server = Server::where('team_id', $teamId)->where('uuid', $serverUuid)->first();- if (!$server) {+ if (! $server) {return redirect()->route('dashboard');}+ $this->authorize('view', $server);$this->server = $server;$this->getDevView();}@@ -180,4 +181,4 @@ class Show extends Component{return view('livewire.shared-variables.server.show');}-}\ No newline at end of file+}