diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-05 21:10:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-05 21:10:22 +0000 |
commit | 590189d177dad55b697fd52bd88edfdfcebff30d (patch) | |
tree | 3ff14a2d6ed5a2a79283cec38aa944b49e53335d /lib/api/helpers.rb | |
parent | f368b4968e55b32dcedfaefe7c31f7a9463454cf (diff) | |
download | gitlab-ce-590189d177dad55b697fd52bd88edfdfcebff30d.tar.gz |
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 030efe14d8b..3742c3b1c36 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -220,6 +220,10 @@ module API user_project.builds.find(id.to_i) end + def find_job!(id) + user_project.processables.find(id.to_i) + end + def authenticate! unauthorized! unless current_user end |