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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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|