FIX: Correct error in AdminDashboardData problem check (#119)

This would cause admin checks to fail when the plugin is disabled.

Unfortunately plugin-contributed AdminDashboardData checks are not currently testable, but I hope to fix that in a future core commit.

Follow-up to 8de3e498b2
This commit is contained in:
David Taylor
2022-03-31 12:14:40 +01:00
committed by GitHub
parent d63e11cf33
commit 3900586557
+1 -1
View File
@@ -29,7 +29,7 @@ after_initialize do
add_admin_route 'chat_integration.menu_title', 'chat-integration'
AdminDashboardData.add_problem_check do
break if !SiteSetting.chat_integration_enabled
next if !SiteSetting.chat_integration_enabled
error = false
DiscourseChatIntegration::Channel.find_each do |channel|