mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: do not show SSO last payload to moderators (#12084)
This commit is contained in:
@@ -7,4 +7,8 @@ class SingleSignOnRecordSerializer < ApplicationSerializer
|
||||
:external_name, :external_avatar_url,
|
||||
:external_profile_background_url,
|
||||
:external_card_background_url
|
||||
|
||||
def include_last_payload?
|
||||
scope.is_admin?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user