mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: show admin moderation flags UI (#28071)
The page was hidden behind a feature flag in this PR https://github.com/discourse/discourse/pull/27756 It is now in a shippable state.
This commit is contained in:
committed by
GitHub
parent
31d3984e50
commit
205a2bf0d6
@@ -76,7 +76,6 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
:can_view_raw_email,
|
||||
:use_glimmer_topic_list?,
|
||||
:login_method,
|
||||
:show_experimental_flags_admin_page,
|
||||
:render_experimental_about_page
|
||||
|
||||
delegate :user_stat, to: :object, private: true
|
||||
@@ -142,18 +141,10 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
object.staff?
|
||||
end
|
||||
|
||||
def show_experimental_flags_admin_page
|
||||
object.in_any_groups?(SiteSetting.experimental_flags_admin_page_enabled_groups_map)
|
||||
end
|
||||
|
||||
def render_experimental_about_page
|
||||
object.in_any_groups?(SiteSetting.experimental_redesigned_about_page_groups_map)
|
||||
end
|
||||
|
||||
def include_show_experimental_flags_admin_page?
|
||||
object.admin?
|
||||
end
|
||||
|
||||
def can_post_anonymously
|
||||
SiteSetting.allow_anonymous_posting &&
|
||||
(is_anonymous || object.in_any_groups?(SiteSetting.anonymous_posting_allowed_groups_map))
|
||||
|
||||
Reference in New Issue
Block a user