Fix issue with user validation in Server.php
This commit is contained in:
parent
5e1396025c
commit
7779713392
@ -860,6 +860,9 @@ $schema://$host {
|
|||||||
}
|
}
|
||||||
public function isNonRoot()
|
public function isNonRoot()
|
||||||
{
|
{
|
||||||
|
if ($this->user instanceof Stringable) {
|
||||||
|
return $this->user->value() !== 'root';
|
||||||
|
}
|
||||||
return $this->user !== 'root';
|
return $this->user !== 'root';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user