diff --git a/src/Appwrite/Platform/Modules/Proxy/Action.php b/src/Appwrite/Platform/Modules/Proxy/Action.php index f2ffc58568..959a27b48b 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Action.php +++ b/src/Appwrite/Platform/Modules/Proxy/Action.php @@ -54,10 +54,11 @@ class Action extends PlatformAction return $dbForPlatform->getDocument('rules', $rule->getId()); }); - if ( - $existingRule->isEmpty() || - $existingRule->getAttribute('domain', '') !== $rule->getAttribute('domain', '') - ) { + if ($existingRule->isEmpty()) { + return true; + } + + if ($existingRule->getAttribute('domain', '') !== $rule->getAttribute('domain', '')) { return false; }