Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
fix(frontend:files): correct writeable condition
johaven288193e3d8f0
diff --git a/frontend/src/app/applications/files/services/files.service.ts b/frontend/src/app/applications/files/services/files.service.tsindex d5f5e222..be8b6540 100644--- a/frontend/src/app/applications/files/services/files.service.ts+++ b/frontend/src/app/applications/files/services/files.service.ts@@ -296,7 +296,7 @@ export class FilesService {this.http.head(file.dataUrl).subscribe({next: async () => {// This check is only used for the text viewer; other viewers are read-only or enforce permissions on the backend.- const isWriteable = file?.lock?.isExclusive && permissions.indexOf(SPACE_OPERATION.MODIFY) > -1+ const isWriteable = !file?.lock?.isExclusive && permissions.includes(SPACE_OPERATION.MODIFY)const mode: FILE_MODE = isWriteable ? FILE_MODE.EDIT : FILE_MODE.VIEWlet hookedShortMime: string