Disable answer edition in forms

pull/1/head
yflory 3 years ago
parent 925872679a
commit 2df0f6df9b

@ -3244,7 +3244,8 @@ define([
channel: content.answers.channel,
validateKey: content.answers.validateKey,
publicKey: content.answers.publicKey,
privateKey: key
privateKey: key,
cantEdit: content.answers.cantEdit
}, function (err, obj) {
var answers = obj && obj.results;
if (answers) { APP.answers = answers; }
@ -3263,7 +3264,8 @@ define([
sframeChan.query("Q_FORM_FETCH_ANSWERS", {
channel: content.answers.channel,
validateKey: content.answers.validateKey,
publicKey: content.answers.publicKey
publicKey: content.answers.publicKey,
cantEdit: content.answers.cantEdit
}, function (err, obj) {
var answers = obj && obj.results;
if (answers) { APP.answers = answers; }
@ -3289,6 +3291,7 @@ define([
validateKey: content.answers.validateKey,
publicKey: content.answers.publicKey,
privateKey: content.answers.privateKey,
cantEdit: content.answers.cantEdit
}, function (err, obj) {
var answers = obj && obj.results;
if (answers) { APP.answers = answers; }

@ -221,6 +221,8 @@ define([
delete results[parsed._proof.key];
}
}
// XXX If "allow edition" is disabled, don't override here?
// if (data.cantEdit && results[senderCurve]) { return; }
results[senderCurve] = {
msg: parsed,
hash: hash,

Loading…
Cancel
Save