Use admin_build for erase (Forbid Developer to erase job)
What does this MR do?
This MR uses admin_build
for JobsController#erase
. This is for preventing developers to erase builds.
Old MR is https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11538.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
This is required at #31771 (moved)
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Close #31771 (moved)
Edited by Shinya Maeda