Change collection update to also send notifications if the sensitive label or the topic are changed (#38644)

This commit is contained in:
Claire 2026-04-11 13:01:55 +02:00 committed by GitHub
parent 8124d44ee1
commit 73fc8d34d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,6 @@ class NotifyOfCollectionUpdateService
return false if collection.previously_new_record?
# Only notify of change to description or name
%i(description description_html name).any? { |attr| collection.attribute_previously_changed?(attr) }
%i(description description_html name sensitive tag_id).any? { |attr| collection.attribute_previously_changed?(attr) }
end
end