social/mail_notification_custom_subject/models
Jairo Llopis ba8cf6ec7a
[FIX] mail_notification_custom_subject: do not require being admin to send messages
After installing the module, any user was required to have admin rights to be able to search across models.

This fix does just that search with sudo and returns back to non-sudo mode immediately after. This way, we don't need to increase permissions for everybody.

Tests now run unprivileged, to assert this problem never happens again.

@moduon MT-1644 MT-1645
2022-12-02 08:57:08 +00:00
..
__init__.py [ADD] mail_notification_custom_subject: Apply a custom subject to mail notifications 2022-10-19 12:40:22 +02:00
mail_message_custom_subject.py [MIG] mail_notification_custom_subject: Migration to 15.0 2022-10-25 08:06:44 +02:00
mail_thread.py [FIX] mail_notification_custom_subject: do not require being admin to send messages 2022-12-02 08:57:08 +00:00