Fix issue with user validation in Server.php
This commit is contained in:
parent
5e1396025c
commit
7779713392
@ -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';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user