aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2025-01-21 15:08:07 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-01-30 14:25:08 +0000
commit4eb4301ea4c7a5b687f25bdcff5d27718c215873 (patch)
tree9799b19fdcb29aab3274b0477ae52614d3445bbd
parent1b5c1fe6181fdb2994dc23a7f8dbc8f59e5feb8a (diff)
downloadnextcloud-server-backport/50292/stable30.tar.gz
nextcloud-server-backport/50292/stable30.zip
fix(files_sharing): Only clear permissions of pending federated sharesbackport/50292/stable30
Signed-off-by: provokateurin <kate@provokateurin.de> [skip ci]
-rw-r--r--apps/files_sharing/src/services/SharingService.spec.ts11
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 388b0a7cc26..2abdd38dd18 100644
--- a/apps/files_sharing/src/services/SharingService.spec.ts
+++ b/apps/files_sharing/src/services/SharingService.spec.ts
@@ -278,7 +278,7 @@ describe('SharingService share to Node mapping', () => {
tags: [window.OC.TAG_FAVORITE],
}
- const remoteFile = {
+ const remoteFileAccepted = {
mimetype: 'text/markdown',
mtime: 1688721600,
permissions: 19,
@@ -362,13 +362,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)