parent
ac288b9300
commit
95d8d5e9ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue