diff options
author | provokateurin <kate@provokateurin.de> | 2025-01-21 15:08:07 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-01-30 14:23:27 +0000 |
commit | e939376810d462423013b3cbf41aa63efbc2edae (patch) | |
tree | f9ab78275055c3433221dcd57666e13031ac15e7 | |
parent | 0f47f9a5c49886a7240b4d0901d6f4b64908e0f6 (diff) | |
download | nextcloud-server-backport/50292/stable29.tar.gz nextcloud-server-backport/50292/stable29.zip |
fix(files_sharing): Only clear permissions of pending federated sharesbackport/50292/stable29
Signed-off-by: provokateurin <kate@provokateurin.de>
[skip ci]
-rw-r--r-- | apps/files_sharing/src/services/SharingService.spec.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/files_sharing/src/services/SharingService.spec.ts b/apps/files_sharing/src/services/SharingService.spec.ts index edfa10483f1..255cb73f5ba 100644 --- a/apps/files_sharing/src/services/SharingService.spec.ts +++ b/apps/files_sharing/src/services/SharingService.spec.ts @@ -294,7 +294,7 @@ describe('SharingService share to Node mapping', () => { tags: [window.OC.TAG_FAVORITE], } - const remoteFile = { + const remoteFileAccepted = { mimetype: 'text/markdown', mtime: 1688721600, permissions: 19, @@ -378,13 +378,12 @@ describe('SharingService share to Node mapping', () => { ocs: { data: [remoteFile], }, - }, - })) + })) - const shares = await getContents(false, true, false, false) + const shares = await getContents(false, true, false, false) - expect(axios.get).toHaveBeenCalledTimes(1) - expect(shares.contents).toHaveLength(1) + expect(axios.get).toHaveBeenCalledTimes(1) + expect(shares.contents).toHaveLength(1) const file = shares.contents[0] as File expect(file).toBeInstanceOf(File) |