Skip to content

Commit 1c4aa4f

Browse files
authored
Merge pull request #579 from utopia-php/remove-skip-auth
Remove auth skip in deleteDocuments
2 parents f9c2b6b + 1c633f9 commit 1c4aa4f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Database/Database.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5638,16 +5638,12 @@ public function deleteDocuments(
56385638
}
56395639
}
56405640

5641-
$this->withTransaction(function () use ($collection, $skipAuth, $authorization, $internalIds, $permissionIds) {
5642-
$getResults = fn () => $this->adapter->deleteDocuments(
5641+
$this->withTransaction(function () use ($collection, $internalIds, $permissionIds) {
5642+
$this->adapter->deleteDocuments(
56435643
$collection->getId(),
56445644
$internalIds,
56455645
$permissionIds
56465646
);
5647-
5648-
$skipAuth
5649-
? $authorization->skip($getResults)
5650-
: $getResults();
56515647
});
56525648

56535649
foreach ($batch as $document) {

0 commit comments

Comments
 (0)