Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-20 16:49:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-20 16:49:51 +0300
commit71786ddc8e28fbd3cb3fcc4b3ff15e5962a1c82e (patch)
tree6a2d93ef3fb2d353bb7739e4b57e6541f51cdd71 /app/serializers/issue_entity.rb
parenta7253423e3403b8c08f8a161e5937e1488f5f407 (diff)
Add latest changes from gitlab-org/gitlab@15-9-stable-eev15.9.0-rc42
Diffstat (limited to 'app/serializers/issue_entity.rb')
-rw-r--r--app/serializers/issue_entity.rb11
1 files changed, 6 insertions, 5 deletions
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,