Apply node maintenance mode to servers (#4421)

This commit is contained in:
Boy132 2022-11-07 00:02:30 +01:00 committed by GitHub
parent 4032481a4f
commit 032e4f2e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 29 additions and 5 deletions

View file

@ -354,6 +354,7 @@ class Server extends Model
{
if (
$this->isSuspended() ||
$this->node->isUnderMaintenance() ||
!$this->isInstalled() ||
$this->status === self::STATUS_RESTORING_BACKUP ||
!is_null($this->transfer)