Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Pitino <fpitino@gitlab.com>2019-06-28 19:27:07 +0300
committerFabio Pitino <fpitino@gitlab.com>2019-07-10 13:08:45 +0300
commita7821dd910fd385a66cfe6c840c37c7b11263410 (patch)
treeb92de339bf035a7535bd85d11578e333ebb2e8b6 /app/controllers
parent0cd59a756cdee7aac8915f3e96ba4f065e5cbc9c (diff)
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 'app/controllers')
-rw-r--r--app/controllers/projects/triggers_controller.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/controllers/projects/triggers_controller.rb b/app/controllers/projects/triggers_controller.rb
index 284e119ca06..7159d0243a3 100644
--- a/app/controllers/projects/triggers_controller.rb
+++ b/app/controllers/projects/triggers_controller.rb
@@ -4,7 +4,7 @@ class Projects::TriggersController < Projects::ApplicationController
before_action :authorize_admin_build!
before_action :authorize_manage_trigger!, except: [:index, :create]
before_action :authorize_admin_trigger!, only: [:edit, :update]
- before_action :trigger, only: [:take_ownership, :edit, :update, :destroy]
+ before_action :trigger, only: [:edit, :update, :destroy]
layout 'project_settings'
@@ -24,16 +24,6 @@ class Projects::TriggersController < Projects::ApplicationController
redirect_to project_settings_ci_cd_path(@project, anchor: 'js-pipeline-triggers')
end
- def take_ownership
- if trigger.update(owner: current_user)
- flash[:notice] = _('Trigger was re-assigned.')
- else
- flash[:alert] = _('You could not take ownership of trigger.')
- end
-
- redirect_to project_settings_ci_cd_path(@project, anchor: 'js-pipeline-triggers')
- end
-
def edit
end