Fix issue with user validation in Server.php

This commit is contained in:
Andras Bacsai 2024-04-18 11:48:10 +02:00
parent 5e1396025c
commit 7779713392

View File

@ -860,6 +860,9 @@ public function validateCoolifyNetwork($isSwarm = false, $isBuildServer = false)
}
public function isNonRoot()
{
if ($this->user instanceof Stringable) {
return $this->user->value() !== 'root';
}
return $this->user !== 'root';
}
}