mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add problem check informing about admin layout deprecation (#30685)
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.
This commit is contained in:
11
app/services/problem_check/admin_sidebar_deprecation.rb
Normal file
11
app/services/problem_check/admin_sidebar_deprecation.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user