FIX: Keep compatibility with older version of Discourse.
This commit is contained in:
parent
5a459fbb6e
commit
c13a7b6f61
|
@ -66,7 +66,7 @@ class OAuth2BasicAuthenticator < ::Auth::OAuth2Authenticator
|
|||
end
|
||||
|
||||
def json_walk(result, user_json, prop)
|
||||
path = SiteSetting.get("oauth2_json_#{prop}_path")
|
||||
path = SiteSetting.public_send("oauth2_json_#{prop}_path")
|
||||
if path.present?
|
||||
segments = path.split('.')
|
||||
val = walk_path(user_json, segments)
|
||||
|
|
Loading…
Reference in New Issue