diff --git a/backend/web/server/plugins/cyberleague/actions.js b/backend/web/server/plugins/cyberleague/actions.js index 1f2dfd82de..85dfb8574c 100644 --- a/backend/web/server/plugins/cyberleague/actions.js +++ b/backend/web/server/plugins/cyberleague/actions.js @@ -126,7 +126,7 @@ const isActionAllowed = async ({action, dataId, user, ...rest}) => { if (action == 'smartdiet_next_question') { //if current answer is not answered - if (!lodash.includes(ANSWERS,score.answers[answerIndex])) { + if (!lodash.includes(lodash.keys(ANSWERS),score.answers[answerIndex].answer)) { throw new ForbiddenError(`Il faut répondre à la question avant de pouvoir passer à la suivante`) }