mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 03:41:54 +08:00
When we initially turned on admin sidebar for new sites, existing sites had the value set to -1. We need to show the problem check to these sites too, but currently it only checks if `admin_sidebar_enabled_groups` is empty.
14 lines
313 B
Ruby
Vendored
14 lines
313 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class ProblemCheck::AdminSidebarDeprecation < ProblemCheck::ProblemCheck
|
|
self.priority = "low"
|
|
|
|
def call
|
|
if SiteSetting.admin_sidebar_enabled_groups.present? &&
|
|
SiteSetting.admin_sidebar_enabled_groups != "-1"
|
|
return no_problem
|
|
end
|
|
|
|
problem
|
|
end
|
|
end
|