SECURITY: check permissions for mailing list
if you deployed this feature in the last 2 hours upgrade asap.
This commit is contained in:
parent
8e9cfdfcda
commit
e133c82d4b
|
@ -29,8 +29,10 @@ module Jobs
|
||||||
cu.notification_level = ?
|
cu.notification_level = ?
|
||||||
)', post.topic.category_id, CategoryUser.notification_levels[:muted])
|
)', post.topic.category_id, CategoryUser.notification_levels[:muted])
|
||||||
.each do |user|
|
.each do |user|
|
||||||
|
if Guardian.new(user).can_see?(post)
|
||||||
UserNotifications.mailing_list_notify(user, post).deliver
|
UserNotifications.mailing_list_notify(user, post).deliver
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue