Skip to content

Commit

Permalink
Fix issue with user validation in Server.php
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Apr 18, 2024
1 parent 5e13960 commit 7779713
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Models/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}

0 comments on commit 7779713

Please sign in to comment.