mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 07:32:11 +08:00

https://meta.discourse.org/t/should-the-email-address-of-a-new-user-be-included-in-the-webhook/59255
10 lines
162 B
Ruby
10 lines
162 B
Ruby
class WebHookUserSerializer < UserSerializer
|
|
# remove staff attributes
|
|
def staff_attributes(*attrs)
|
|
end
|
|
|
|
def include_email?
|
|
scope.is_admin?
|
|
end
|
|
end
|