blob: 8688b9a2af10a2ed8fc1a566c2b42078276e3c94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# frozen_string_literal: true
class IssueEmailParticipantPresenter < Gitlab::View::Presenter::Delegated
presents ::IssueEmailParticipant, as: :participant
delegator_override :email
def email
return super if Ability.allowed?(current_user, :read_external_emails, participant.issue.project)
Gitlab::Utils::Email.obfuscated_email(super, deform: true)
end
end
|