mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user