Allow guest answers by default in forms

pull/1/head
yflory 2021-08-26 15:43:16 +02:00
parent 54a9a761f9
commit 2655a99b80
1 changed files with 4 additions and 1 deletions

View File

@ -3477,7 +3477,7 @@ define([
UI.alert(content);
};
framework.onReady(function () {
framework.onReady(function (isNew) {
var priv = metadataMgr.getPrivateData();
if (APP.isEditor) {
@ -3502,6 +3502,9 @@ define([
}
checkIntegrity();
}
if (isNew && content.answers && typeof(content.answers.anonymous) === "undefined") {
content.answers.anonymous = true;
}
sframeChan.event('EV_FORM_PIN', {channel: content.answers.channel});