From 4747b1ebc408204ff9ac4e6b9afa1d97fcf8c91a Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 31 Mar 2023 18:17:06 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/api/helpers.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/api/helpers.rb') diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 74c740f47cc..e55452fd07b 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -332,6 +332,10 @@ module API authorize! :read_build, user_project end + def authorize_read_code! + authorize! :read_code, user_project + end + def authorize_read_build_trace!(build) authorize! :read_build_trace, build end -- cgit v1.2.3