mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:43:16 +08:00
parent
6258406419
commit
219bb0b6a7
|
@ -44,6 +44,8 @@ class WebHookUserSerializer < UserSerializer
|
|||
scope.is_admin?
|
||||
end
|
||||
|
||||
alias_method :include_secondary_emails?, :include_email?
|
||||
|
||||
def include_external_id?
|
||||
scope.is_admin? && object.single_sign_on_record
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user