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 issue with user validation in Server.php

Andras Bacsai777971339248
diff --git a/app/Models/Server.php b/app/Models/Server.php
index fb3443d943..bda0443202 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -860,6 +860,9 @@ $schema://$host {
}
public function isNonRoot()
{
+ if ($this->user instanceof Stringable) {
+ return $this->user->value() !== 'root';
+ }
return $this->user !== 'root';
}
}