mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 07:34:18 +08:00
7c17966171
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
|