diff --git a/apps/files_sharing/src/services/SharingService.spec.ts b/apps/files_sharing/src/services/SharingService.spec.ts index fa805c2837109..a36f2182d107b 100644 --- a/apps/files_sharing/src/services/SharingService.spec.ts +++ b/apps/files_sharing/src/services/SharingService.spec.ts @@ -392,7 +392,7 @@ describe('SharingService share to Node mapping', () => { expect(file.mtime?.getTime()).toBe(remoteFile.mtime * 1000) // not available for remote shares expect(file.size).toBe(undefined) - expect(file.permissions).toBe(0) + expect(file.permissions).toBe(19) expect(file.root).toBe('/files/test') expect(file.attributes).toBeInstanceOf(Object) expect(file.attributes.favorite).toBe(0) diff --git a/apps/files_sharing/src/services/SharingService.ts b/apps/files_sharing/src/services/SharingService.ts index 2d1d5fbef9e65..01a92cfff8707 100644 --- a/apps/files_sharing/src/services/SharingService.ts +++ b/apps/files_sharing/src/services/SharingService.ts @@ -40,9 +40,12 @@ const ocsEntryToNode = async function(ocsEntry: any): Promise