mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 12:23:36 +08:00
101ec21bc9
Before this commit, we did not have guardian checks in place to determine if a topic's title associated with a user badge should be displayed or not. This means that the topic title of topics with restricted access could be leaked to anon and users without access if certain conditions are met. While we will not specify the conditions required, we have internally assessed that the odds of meeting such conditions are low. With this commit, we will now apply a guardian check to ensure that the current user is able to see a topic before the topic's title is included in the serialized object of a `UserBadge`. |
||
---|---|---|
.. | ||
email_logs_mixin.rb | ||
topic_tags_mixin.rb | ||
user_auth_tokens_mixin.rb | ||
user_badge_post_and_topic_attributes_mixin.rb | ||
user_primary_group_mixin.rb | ||
user_sidebar_tags_mixin.rb | ||
user_tag_notifications_mixin.rb |