mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 14:08:40 +08:00

We want to avoid surprises when we make the new admin sidebar baseline, so in addition to announcements, we're also adding a problem check that informs you if you don't have it enabled for any group yet.
12 lines
238 B
Ruby
12 lines
238 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ProblemCheck::AdminSidebarDeprecation < ProblemCheck::ProblemCheck
|
|
self.priority = "low"
|
|
|
|
def call
|
|
return no_problem if SiteSetting.admin_sidebar_enabled_groups.present?
|
|
|
|
problem
|
|
end
|
|
end
|