1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 22:59:43 +02:00

Prevent edits to locked docs/sections

This commit is contained in:
McMatts 2019-11-08 12:44:41 +00:00
parent a19ba46f7a
commit 441efd42e9

View file

@ -45,7 +45,7 @@ export default Component.extend(Notifier, ModalMixin, {
let notEmpty = this.get('pages.length') > 0; let notEmpty = this.get('pages.length') > 0;
if (notEmpty && authenticated && permissions.get('documentEdit') if (notEmpty && authenticated && permissions.get('documentEdit')
&& (this.get('document.protection') !== constants.ProtectionType.Locked)) { && (this.get('document.protection') !== constants.ProtectionType.Lock)) {
return true; return true;
} }