diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php index b95e528420..6e2a30a5ee 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php @@ -76,7 +76,7 @@ class Update extends Action throw new Exception(Exception::RULE_NOT_FOUND); } - if ($rule->getAttribute('verification') === true) { + if ($rule->getAttribute('status', '') !== RULE_STATUS_VERIFICATION_FAILED) { return $response->dynamic($rule, Response::MODEL_PROXY_RULE); } diff --git a/src/Appwrite/Utopia/Response/Model/Rule.php b/src/Appwrite/Utopia/Response/Model/Rule.php index 958cd2dd45..61bf33dfd3 100644 --- a/src/Appwrite/Utopia/Response/Model/Rule.php +++ b/src/Appwrite/Utopia/Response/Model/Rule.php @@ -85,7 +85,7 @@ class Rule extends Model ->addRule('status', [ 'type' => self::TYPE_STRING, 'description' => 'Domain verification status. Possible values are "' . RULE_STATUS_VERIFICATION_FAILED . '", "' . RULE_STATUS_GENERATING_CERTIFICATE . '", "' . RULE_STATUS_SUCCESSFUL . '" and "' . RULE_STATUS_GENERATION_FAILED . '"', - 'default' => false, + 'default' => '', 'example' => RULE_STATUS_SUCCESSFUL, ]) ->addRule('verificationLogs', [