Fix share dialog pre-selecting the edit link in a read-only pad #365

This commit is contained in:
yflory 2019-05-13 15:26:20 +02:00
parent 64667d6d0d
commit a148434244
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ define([
}
common.getAttribute(['general', 'share'], function (err, val) {
val = val || {};
if (val.edit === false) {
if (val.edit === false || !hashes.editHash) {
$(link).find('#cp-share-editable-false').prop('checked', true);
$(link).find('#cp-share-editable-true').prop('checked', false);
} else {