diff options
-rw-r--r-- | public/js/index.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js index 1e4bc9fe..4559cd92 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1722,7 +1722,14 @@ editor.on('beforeChange', function (cm, change) { if (!isIgnoreEmitEvent) { if (!havePermission()) { change.canceled = true; - $('.signin-modal').modal('show'); + switch (permission) { + case "editable": + $('.signin-modal').modal('show'); + break; + case "locked": + $('.locked-modal').modal('show'); + break; + } } } else { if (change.origin == 'ignoreHistory') { |