FEATURE: Allow admins to delete user SSO records in the UI (#10669)

Also displays the user's last payload in the admin UI to help with debugging SSO issues.
This commit is contained in:
Penar Musaraj
2020-09-15 10:00:10 -04:00
committed by GitHub
parent 6d7b8a71c0
commit 273db57d6e
10 changed files with 80 additions and 1 deletions

View File

@@ -167,4 +167,7 @@ module UserGuardian
(is_me?(user) && user.has_trust_level?(SiteSetting.min_trust_level_to_allow_user_card_background.to_i)) || is_staff?
end
def can_delete_sso_record?(user)
SiteSetting.enable_sso && user && is_admin?
end
end