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-06-28 15:11:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-28 15:11:16 +0300
commit48c36378567b3dbadd780b03ecda571652cff400 (patch)
treef1d4accd3942a27e6c27a9a7f34c99d893d8794b /lib/api/entities
parent7b848eda5589ff5fa1bc3c6f782fc907c59a4417 (diff)
Add latest changes from gitlab-org/security/gitlab@16-1-stable-ee
Diffstat (limited to 'lib/api/entities')
-rw-r--r--lib/api/entities/issue.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/api/entities/issue.rb b/lib/api/entities/issue.rb
index 56e942a0383..79adad92d6f 100644
--- a/lib/api/entities/issue.rb
+++ b/lib/api/entities/issue.rb
@@ -55,7 +55,14 @@ module API
end
expose :moved_to_id
- expose :service_desk_reply_to
+ expose :service_desk_reply_to do |issue|
+ issue.present(
+ current_user: options[:current_user],
+ # We need to pass it explicitly to account for the case where `issue`
+ # is a `WorkItem` which doesn't have a presenter yet.
+ presenter_class: IssuePresenter
+ ).service_desk_reply_to
+ end
end
end
end