Skip to content
Snippets Groups Projects
Commit 715834c6 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] mail: allow message_log to store a void email_from

Some functional flows use sudo() to create records as current user is the
public user. This user has no email. Since 1e6c3bec using sudo does
not take superuser identity completely as it only bypasses access rights.
It means some messages are created with public user as author, meaning no
email_from.

In this commit we fix some functional flows by allowing message_log to store
messages with a void email_from. Indeed message_log does not propagate any
notifications, meaning email_from is not required in any email notification
or to compute a reply_to.
parent 560e03e3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment