discourse/app/serializers/concerns
Alan Guo Xiang Tan 101ec21bc9
SECURITY: Restrict display of topic titles associated with user badges (#18768)
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`.
2022-10-27 11:26:14 +08:00
..
email_logs_mixin.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
topic_tags_mixin.rb FEATURE: ability to add description to tags (#15125) 2021-12-01 09:18:56 +11:00
user_auth_tokens_mixin.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
user_badge_post_and_topic_attributes_mixin.rb SECURITY: Restrict display of topic titles associated with user badges (#18768) 2022-10-27 11:26:14 +08:00
user_primary_group_mixin.rb FEATURE: Let users select flair (#13587) 2021-07-08 10:46:21 +03:00
user_sidebar_tags_mixin.rb DEV: Sidebar default tags and categories are determined at user creation (#18620) 2022-10-27 06:38:50 +08:00
user_tag_notifications_mixin.rb FIX: Remove tags from experimental sidebar on notification level changed (#17083) 2022-06-14 15:39:56 +08:00