DEV: Fix build

Follow-up to 6258406419.
This commit is contained in:
Dan Ungureanu 2020-06-16 13:00:09 +03:00
parent 6258406419
commit 219bb0b6a7
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84

View File

@ -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