node locking enhancements and fixes (#955)

* optimize image resolver

* allow previewing locked files

* allow selecting locked nodes

* fix comments and metadata tabs

* improved lock checks

* remove obsolete "experimental" directive
This commit is contained in:
Denys Vuika
2019-02-15 18:36:51 +00:00
committed by GitHub
parent 46c8062f2f
commit 4cde12dfee
40 changed files with 69 additions and 387 deletions

View File

@@ -26,7 +26,9 @@ export class AosEditOnlineService {
// const checkedOut = node.aspectNames.find(
// (aspect: string) => aspect === 'cm:checkedOut'
// );
const checkedOut = node.properties['cm:lockType'] === 'WRITE_LOCK';
const checkedOut =
node.properties['cm:lockType'] === 'WRITE_LOCK' ||
node.properties['cm:lockType'] === 'READ_ONLY_LOCK';
const lockOwner = node.properties['cm:lockOwner'];
const differentLockOwner =
lockOwner.id !== this.alfrescoAuthenticationService.getEcmUsername();

View File

@@ -32,7 +32,10 @@ export function canOpenWithOffice(
}
*/
if (file.entry.properties['cm:lockType'] === 'WRITE_LOCK') {
if (
file.entry.properties['cm:lockType'] === 'WRITE_LOCK' ||
file.entry.properties['cm:lockType'] === 'READ_ONLY_LOCK'
) {
return false;
}