social/mail_notification_custom_su.../tests
Jairo Llopis 120237d630
[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
2024-10-01 12:57:07 +02:00
..
__init__.py [ADD] mail_notification_custom_subject: Apply a custom subject to mail notifications 2024-10-01 12:57:05 +02:00
test_mail_notification_custom_subject.py [FIX] mail_notification_custom_subject: do not require being admin to send messages 2024-10-01 12:57:07 +02:00