mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Permissiosn fix for sites
This commit is contained in:
parent
852c6fc3fe
commit
64cea46183
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue