diff options
author | Fabio Pitino <fpitino@gitlab.com> | 2019-06-28 17:27:07 +0100 |
---|---|---|
committer | Fabio Pitino <fpitino@gitlab.com> | 2019-07-10 12:08:45 +0200 |
commit | a7821dd910fd385a66cfe6c840c37c7b11263410 (patch) | |
tree | b92de339bf035a7535bd85d11578e333ebb2e8b6 /lib/api | |
parent | 0cd59a756cdee7aac8915f3e96ba4f065e5cbc9c (diff) | |
download | gitlab-ce-a7821dd910fd385a66cfe6c840c37c7b11263410.tar.gz |
Drop feature to take ownership of a trigger token
Removing API and frontend interactions that allowed
users to take ownership of a trigger token.
Removed mentions from the documentation.
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/triggers.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/api/triggers.rb b/lib/api/triggers.rb index 0e829c5699b..eeecc390256 100644 --- a/lib/api/triggers.rb +++ b/lib/api/triggers.rb @@ -112,27 +112,6 @@ module API end end - desc 'Take ownership of trigger' do - success Entities::Trigger - end - params do - requires :trigger_id, type: Integer, desc: 'The trigger ID' - end - post ':id/triggers/:trigger_id/take_ownership' do - authenticate! - authorize! :admin_build, user_project - - trigger = user_project.triggers.find(params.delete(:trigger_id)) - break not_found!('Trigger') unless trigger - - if trigger.update(owner: current_user) - status :ok - present trigger, with: Entities::Trigger, current_user: current_user - else - render_validation_error!(trigger) - end - end - desc 'Delete a trigger' do success Entities::Trigger end |