Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -4731,6 +4731,11 @@ public function createOrUpdateDocumentsWithIncrease(
)));
}

if ($old->getAttributes() == $document->getAttributes()) {
Comment thread
abnegate marked this conversation as resolved.
Outdated
unset($documents[$key]);
Comment thread
abnegate marked this conversation as resolved.
continue;
}

// If old is empty, check if user has create permission on the collection
// If old is not empty, check if user has update permission on the collection
// If old is not empty AND documentSecurity is enabled, check if user has update permission on the collection or document
Expand Down
Loading