SECURITY: check permissions for mailing list

if you deployed this feature in the last 2 hours upgrade asap.
This commit is contained in:
Sam 2014-02-07 14:10:45 +11:00
parent 8e9cfdfcda
commit e133c82d4b
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ module Jobs
cu.notification_level = ?
)', post.topic.category_id, CategoryUser.notification_levels[:muted])
.each do |user|
UserNotifications.mailing_list_notify(user, post).deliver
if Guardian.new(user).can_see?(post)
UserNotifications.mailing_list_notify(user, post).deliver
end
end
end