Skip to content

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.

fix(ui): Restrict service retrieval to current team

Andras Bacsaif98c58a0a3b3
diff --git a/app/Livewire/Project/Service/EditCompose.php b/app/Livewire/Project/Service/EditCompose.php
index 8ece127907..b5f2089415 100644
--- a/app/Livewire/Project/Service/EditCompose.php
+++ b/app/Livewire/Project/Service/EditCompose.php
@@ -31,12 +31,12 @@ class EditCompose extends Component
public function refreshEnvs()
{
- $this->service = Service::find($this->serviceId);
+ $this->service = Service::ownedByCurrentTeam()->find($this->serviceId);
}
public function mount()
{
- $this->service = Service::find($this->serviceId);
+ $this->service = Service::ownedByCurrentTeam()->find($this->serviceId);
}
public function validateCompose()