From 71786ddc8e28fbd3cb3fcc4b3ff15e5962a1c82e Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 20 Feb 2023 13:49:51 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-9-stable-ee --- app/serializers/issue_entity.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'app/serializers/issue_entity.rb') diff --git a/app/serializers/issue_entity.rb b/app/serializers/issue_entity.rb index a38f345f617..340fd8803af 100644 --- a/app/serializers/issue_entity.rb +++ b/app/serializers/issue_entity.rb @@ -89,12 +89,13 @@ class IssueEntity < IssuableEntity end expose :issue_email_participants do |issue| - # TODO - This is a Temporary solution to avoid leaking participants' emails - # on public/internal projects when issue is not confidential. - # Should be removed when https://gitlab.com/gitlab-org/gitlab/-/issues/383448 is implemented. - next [] unless issue.confidential? + presented_issue = issue.present(current_user: request.current_user) - issue.issue_email_participants.map { |x| { email: x.email } } + presented_issue.issue_email_participants.map do |participant| + { + email: participant.email + } + end end expose :issue_type, -- cgit v1.2.3