Permissiosn fix for sites

This commit is contained in:
Matej Bačo 2025-05-27 10:47:28 +02:00
parent 852c6fc3fe
commit 64cea46183

View file

@ -12,6 +12,7 @@ use Appwrite\SDK\Response as SDKResponse;
use Appwrite\Utopia\Response;
use Utopia\Database\Database;
use Utopia\Database\Document;
use Utopia\Database\Validator\Authorization;
use Utopia\Database\Validator\UID;
use Utopia\Platform\Action;
use Utopia\Platform\Scope\HTTP;
@ -106,7 +107,7 @@ class Update extends Base
$rule = $rule
->setAttribute('deploymentId', $deployment->getId())
->setAttribute('deploymentInternalId', $deployment->getInternalId());
$dbForPlatform->updateDocument('rules', $rule->getId(), $rule);
Authorization::skip(fn () => $dbForPlatform->updateDocument('rules', $rule->getId(), $rule));
});
$queueForEvents