diff --git a/controllers/main.py b/controllers/main.py index f07be2fe3cdcb05d80ce37131443baf2ac6f27b0..a47eb0e9e257ffaeb49c600126e6afff03a694fd 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)