Fix merge

This commit is contained in:
Jake Barnby 2025-07-22 21:23:32 +12:00
parent b02fc55ea2
commit 959e101c88
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -10,6 +10,7 @@ use Appwrite\SDK\AuthType;
use Appwrite\SDK\Method;
use Appwrite\SDK\Response as SDKResponse;
use Appwrite\Utopia\Response as UtopiaResponse;
use Utopia\App;
use Utopia\Database\Database;
use Utopia\Database\Document;
use Utopia\Database\Validator\Key;
@ -88,7 +89,7 @@ class Create extends Action
Event $queueForEvents,
array $plan
): void {
if ($encrypt && !empty($plan) && !($plan['databasesAllowEncrypt'] ?? false)) {
if (!App::isDevelopment() && $encrypt && !empty($plan) && !($plan['databasesAllowEncrypt'] ?? false)) {
throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Encrypted string ' . $this->getSdkGroup() . ' are not available on your plan. Please upgrade to create encrypted string ' . $this->getSdkGroup() . '.');
}