diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-31 21:17:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-31 21:17:06 +0300 |
commit | 4747b1ebc408204ff9ac4e6b9afa1d97fcf8c91a (patch) | |
tree | 1a7cf972d18990f46fadee34dae9676b7016f7c9 /lib/api/helpers.rb | |
parent | ccab6fb4df8bc12220334618e56d911c4d0e447c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 4 |
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 |