FIX: do not show SSO last payload to moderators (#12084)

This commit is contained in:
Arpit Jalan
2021-02-15 16:12:06 +05:30
committed by GitHub
parent 465b402b08
commit 901d6080df
2 changed files with 19 additions and 1 deletions

View File

@@ -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