From 12540c835bbd38426a785871061429bd9df3b86d Mon Sep 17 00:00:00 2001 From: Razmik Ayvazyan <79054971+ayvazyan10@users.noreply.github.com> Date: Thu, 25 Apr 2024 19:31:13 +0400 Subject: [PATCH] For customers allowed status can be only 0 or 16 Allowed values: 0 (active) | 16 (disabled_by admin) -- when status 1 is provided plesk db is crashing somehow and customer stacking in disabled mode. --- src/Api/Operator/Customer.php | 2 +- src/Api/Operator/Webspace.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Operator/Customer.php b/src/Api/Operator/Customer.php index 9f997892..8201e627 100644 --- a/src/Api/Operator/Customer.php +++ b/src/Api/Operator/Customer.php @@ -72,7 +72,7 @@ public function enable(string $field, $value): bool */ public function disable(string $field, $value): bool { - return $this->setProperties($field, $value, ['status' => 1]); + return $this->setProperties($field, $value, ['status' => 16]); } /** diff --git a/src/Api/Operator/Webspace.php b/src/Api/Operator/Webspace.php index 42d4e063..b1181106 100644 --- a/src/Api/Operator/Webspace.php +++ b/src/Api/Operator/Webspace.php @@ -172,7 +172,7 @@ public function enable(string $field, $value): bool */ public function disable(string $field, $value): bool { - return $this->setProperties($field, $value, ['status' => 1]); + return $this->setProperties($field, $value, ['status' => 16]); } /**