Skip to content

Commit

Permalink
AO3-6872 only notify creators when a work is added to a collection
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus8448 committed Jan 11, 2025
1 parent 8467810 commit e57e2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/collection_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def notify_of_association
# Sends emails to item creator(s) in the case that an archivist
# has added them to the collection.
def notify_archivist_added
return unless User.current_user&.archivist && collection.user_is_maintainer?(User.current_user)
return unless item.is_a?(Work) && User.current_user&.archivist && collection.user_is_maintainer?(User.current_user)

item.users.each do |email_recipient|
next if email_recipient.preference.collection_emails_off
Expand Down

0 comments on commit e57e2e4

Please sign in to comment.