diff --git a/app/Models/Host.php b/app/Models/Host.php index 0ae3f31..830e29d 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -425,14 +425,14 @@ public function changeStatus( return false; } - if (! $this->isCycle() && $user->hasBalance('0.5')) { + if (! $this->isCycle() && ! $user->hasBalance('0.5')) { return false; } } if ($status === 'running') { return $this->run(); - } elseif ($status === 'suspended' && ! $this->isCycle()) { + } elseif (($status === 'suspended' || $status === 'suspend') && ! $this->isCycle()) { return $this->suspend(); } elseif ($status === 'stopped') { return $this->stop();