Skip to content

Commit

Permalink
Only send email notifications for 'public' and 'mtan' access levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschuppi81 committed Jan 30, 2025
1 parent e59d033 commit de94305
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/onegov/org/cronjobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def publication_models(
request.app.es_orm_events.index(request.app.schema, obj)

if (isinstance(obj, ExtendedDirectoryEntry) and obj.published and
obj.directory.enable_update_notifications):
obj.directory.enable_update_notifications and obj.access in
('public', 'mtan')):
send_email_notification_for_directory_entry(
obj.directory, obj, request)

Expand Down

0 comments on commit de94305

Please sign in to comment.