From 441efd42e987c7892e85ec789ef7a7be2b0d184f Mon Sep 17 00:00:00 2001 From: McMatts Date: Fri, 8 Nov 2019 12:44:41 +0000 Subject: [PATCH] Prevent edits to locked docs/sections --- gui/app/components/document/page-heading.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/app/components/document/page-heading.js b/gui/app/components/document/page-heading.js index 315ea1f8..2682a96b 100644 --- a/gui/app/components/document/page-heading.js +++ b/gui/app/components/document/page-heading.js @@ -45,7 +45,7 @@ export default Component.extend(Notifier, ModalMixin, { let notEmpty = this.get('pages.length') > 0; if (notEmpty && authenticated && permissions.get('documentEdit') - && (this.get('document.protection') !== constants.ProtectionType.Locked)) { + && (this.get('document.protection') !== constants.ProtectionType.Lock)) { return true; }