diff --git a/lib/discourse_chat/provider.rb b/lib/discourse_chat/provider.rb index a69ed6d..33e6b8e 100644 --- a/lib/discourse_chat/provider.rb +++ b/lib/discourse_chat/provider.rb @@ -37,7 +37,7 @@ module DiscourseChat def self.is_enabled(provider) if defined? provider::PROVIDER_ENABLED_SETTING - SiteSetting.get(provider::PROVIDER_ENABLED_SETTING) + SiteSetting.public_send(provider::PROVIDER_ENABLED_SETTING) else false end