mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +02:00
Prevent edits to locked docs/sections
This commit is contained in:
parent
a19ba46f7a
commit
441efd42e9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue