fix: Moving documents between collections does not update attachment permissions (#2136)
* fix: Copy attachments when neccessary and moving between collections * test: regression
This commit is contained in:
@ -242,11 +242,6 @@ export async function buildAttachment(overrides: Object = {}) {
|
||||
overrides.userId = user.id;
|
||||
}
|
||||
|
||||
if (!overrides.collectionId) {
|
||||
const collection = await buildCollection(overrides);
|
||||
overrides.collectionId = collection.id;
|
||||
}
|
||||
|
||||
if (!overrides.documentId) {
|
||||
const document = await buildDocument(overrides);
|
||||
overrides.documentId = document.id;
|
||||
|
Reference in New Issue
Block a user