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-03-31 21:17:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-31 21:17:06 +0300
commit4747b1ebc408204ff9ac4e6b9afa1d97fcf8c91a (patch)
tree1a7cf972d18990f46fadee34dae9676b7016f7c9 /lib/api/helpers.rb
parentccab6fb4df8bc12220334618e56d911c4d0e447c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb4
1 files changed, 4 insertions, 0 deletions
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