Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abnegate committed Jun 19, 2024
1 parent bdb0aae commit 02a4e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -3638,7 +3638,7 @@ public function updateDocument(string $collection, string $id, Document $documen

if ($shouldUpdate && !$updateValidator->isValid($updatePermissions)) {
throw new AuthorizationException($updateValidator->getDescription());
} else if (!$shouldUpdate && !$readValidator->isValid($readPermissions)) {
} elseif (!$shouldUpdate && !$readValidator->isValid($readPermissions)) {
throw new AuthorizationException($readValidator->getDescription());
}
}
Expand Down

0 comments on commit 02a4e3a

Please sign in to comment.