# 63 Mail data checked

* adds mail sending if shared data is checked
* adds/updates translations
This commit is contained in:
2022-01-12 15:48:47 +01:00
parent dcc4e2fdc8
commit 1de3792d98
7 changed files with 112 additions and 14 deletions

View File

@@ -90,3 +90,17 @@ class User(AbstractUser):
if notification_set:
mailer = Mailer()
mailer.send_mail_shared_data_deleted(obj_identifier, self)
def send_mail_shared_data_checked(self, obj_identifier):
""" Sends a mail to the user in case of shared data has been deleted
Args:
obj_identifier ():
Returns:
"""
notification_set = self.is_notification_setting_set(UserNotificationEnum.NOTIFY_ON_SHARED_DATA_CHECKED)
if notification_set:
mailer = Mailer()
mailer.send_mail_shared_data_checked(obj_identifier, self)