Skip to content

Commit 02cd3d6

Browse files
committed
Updated to show locked-modal instead signin-modal when permission is "locked"
1 parent 21ad5cf commit 02cd3d6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

public/js/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,14 @@ editor.on('beforeChange', function (cm, change) {
17221722
if (!isIgnoreEmitEvent) {
17231723
if (!havePermission()) {
17241724
change.canceled = true;
1725-
$('.signin-modal').modal('show');
1725+
switch (permission) {
1726+
case "editable":
1727+
$('.signin-modal').modal('show');
1728+
break;
1729+
case "locked":
1730+
$('.locked-modal').modal('show');
1731+
break;
1732+
}
17261733
}
17271734
} else {
17281735
if (change.origin == 'ignoreHistory') {

0 commit comments

Comments
 (0)