mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Admin sidebar problem check missing -1 check (#30916)
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.
This commit is contained in:
@@ -4,7 +4,10 @@ class ProblemCheck::AdminSidebarDeprecation < ProblemCheck::ProblemCheck
|
||||
self.priority = "low"
|
||||
|
||||
def call
|
||||
return no_problem if SiteSetting.admin_sidebar_enabled_groups.present?
|
||||
if SiteSetting.admin_sidebar_enabled_groups.present? &&
|
||||
SiteSetting.admin_sidebar_enabled_groups != "-1"
|
||||
return no_problem
|
||||
end
|
||||
|
||||
problem
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user