From 174574f6917e6aad2171f95f29080676d84ae3d2 Mon Sep 17 00:00:00 2001 From: Juliana <juliana@le-filament.com> Date: Tue, 6 Jul 2021 14:39:24 +0200 Subject: [PATCH] [FIX] Bug on survey notification right --- controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/main.py b/controllers/main.py index f07be2f..a47eb0e 100644 --- a/controllers/main.py +++ b/controllers/main.py @@ -53,7 +53,7 @@ class WebsiteSurveyExtend(Survey): # Send mail auto if survey configurated user_input.action_send_mail() # Send notification to followers - survey.message_post(body="Nouvelle réponse à ce sondage", message_type="notification", subtype="ethikis_survey.survey_state_change") + survey.sudo().message_post(email_from="elsa@ethikis.com", body="Nouvelle réponse à ce sondage", message_type="notification", subtype="ethikis_survey.survey_state_change") else: vals.update({'state': 'skip'}) user_input.sudo(user=user_id).write(vals) -- GitLab