From 390058655763debc7a66f2d889eab3aee2423c46 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 31 Mar 2022 12:14:40 +0100 Subject: [PATCH] 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 8de3e498b2814ffd87220b4de8051577abf8c5de --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 79acff1..e372a37 100644 --- a/plugin.rb +++ b/plugin.rb @@ -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|