diff options
author | Roger Rüttimann <roger.ruettimann@gmail.com> | 2019-03-06 11:06:21 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-03-06 11:06:21 +0000 |
commit | 4db83367868a7530e43ea635d3916fb1c20dd4f9 (patch) | |
tree | 7b56f06cc7f040d0eaa6807ae2cbc602d495588c /lib/api/helpers.rb | |
parent | 79305b77f4daa0a25797fc0e656da53abd52c4f3 (diff) | |
download | gitlab-ce-4db83367868a7530e43ea635d3916fb1c20dd4f9.tar.gz |
API: delete job_artifacts of a single job
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 54cd4cd9cdb..825fab62034 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -244,6 +244,10 @@ module API authorize! :read_build, user_project end + def authorize_destroy_artifacts! + authorize! :destroy_artifacts, user_project + end + def authorize_update_builds! authorize! :update_build, user_project end |