mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
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:
@@ -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();
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user