FEATURE: Enable the new /about page for everyone (#29390)

This commit removes the feature flag for the new /about page, enabling it for all sites, and removes the code for old the /about page.

Internal topic: t/140413.
This commit is contained in:
Osama Sayegh
2024-10-29 18:40:11 +03:00
committed by GitHub
parent cc447a1ae3
commit 2ffe413b0b
25 changed files with 364 additions and 765 deletions

View File

@ -77,7 +77,6 @@ class CurrentUserSerializer < BasicUserSerializer
:can_view_raw_email,
:use_glimmer_topic_list?,
:login_method,
:render_experimental_about_page,
:has_unseen_features
delegate :user_stat, to: :object, private: true
@ -151,10 +150,6 @@ class CurrentUserSerializer < BasicUserSerializer
object.staff?
end
def render_experimental_about_page
object.in_any_groups?(SiteSetting.experimental_redesigned_about_page_groups_map)
end
def can_post_anonymously
SiteSetting.allow_anonymous_posting &&
(is_anonymous || object.in_any_groups?(SiteSetting.anonymous_posting_allowed_groups_map))