Make the form readonly when unregistered users can't send responses
parent
20b0b4b9b2
commit
20e9b2ca87
|
@ -2949,6 +2949,13 @@ define([
|
|||
if (infoTxt) {
|
||||
$container.prepend(h('div.alert.alert-info', infoTxt));
|
||||
}
|
||||
|
||||
if (!loggedIn && !content.answers.anonymous) {
|
||||
APP.formBlocks.forEach(function (b) {
|
||||
if (!b.setEditable) { return; }
|
||||
b.setEditable(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Embed mode is enforced so we add the title at the top and a CryptPad logo
|
||||
|
|
Loading…
Reference in New Issue