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(var): fail on missing user when hiding env values
peaklabs-dev88ec944be7fa
diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.phpindex 633c8f04dc..db80cff801 100644--- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php+++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php@@ -220,7 +220,7 @@ class Show extends Component$this->is_required = (bool) ($this->env->is_required ?? false);// Use the stored column, not the value-based accessor (that decrypts).$this->is_shared = (bool) ($this->env->getAttributes()['is_shared'] ?? false);- $this->isValueHidden = auth()->user()?->isMember() ?? false;+ $this->isValueHidden = auth()->user()?->isMember() ?? true;if ($this->valuesLoaded) {$this->hydrateValueFields();@@ -247,12 +247,12 @@ class Show extends Component$this->is_really_required = $this->is_required && blank($this->value);}- if ($this->env->is_shown_once || auth()->user()?->isMember()) {+ if ($this->env->is_shown_once || (auth()->user()?->isMember() ?? true)) {$this->value = null;$this->real_value = null;}- $this->isValueHidden = auth()->user()?->isMember() ?? false;+ $this->isValueHidden = auth()->user()?->isMember() ?? true;}public function checkEnvs()