Commit 1591b7c0 authored by Nick Thomas's avatar Nick Thomas

Fix EE Cop/RedirectWithStatus failures introduced by merge

parent 29a3ac19
......@@ -25,7 +25,7 @@ class Admin::GeoNodesController < Admin::ApplicationController
def destroy
@node.destroy
redirect_to admin_geo_nodes_path, notice: 'Node was successfully removed.'
redirect_to admin_geo_nodes_path, status: 302, notice: 'Node was successfully removed.'
end
def repair
......
......@@ -43,7 +43,7 @@ class Admin::LicensesController < Admin::ApplicationController
flash[:alert] = "The license was removed. GitLab now no longer has a valid license."
end
redirect_to admin_license_path
redirect_to admin_license_path, status: 302
end
private
......
......@@ -43,7 +43,7 @@ class Groups::HooksController < Groups::ApplicationController
def destroy
hook.destroy
redirect_to group_hooks_path(@group)
redirect_to group_hooks_path(@group), status: 302
end
private
......
......@@ -60,7 +60,7 @@ class Projects::BoardsController < Projects::ApplicationController
service.execute(@board)
respond_to do |format|
format.html { redirect_to namespace_project_boards_path(@project.namespace, @project) }
format.html { redirect_to namespace_project_boards_path(@project.namespace, @project), status: 302 }
end
end
......
......@@ -36,7 +36,7 @@ class Projects::PathLocksController < Projects::ApplicationController
respond_to do |format|
format.html do
redirect_to namespace_project_locks_path(@project.namespace, @project)
redirect_to namespace_project_locks_path(@project.namespace, @project), status: 302
end
format.js
end
......
......@@ -8,6 +8,7 @@ module Projects
@merge_access_level.destroy
redirect_to namespace_project_protected_branch_path(@project.namespace, @project, @protected_branch),
status: 302,
notice: "Successfully deleted. #{@merge_access_level.humanize} will not be able to merge into this protected branch."
end
end
......
......@@ -8,6 +8,7 @@ module Projects
@push_access_level.destroy
redirect_to namespace_project_protected_branch_path(@project.namespace, @project, @protected_branch),
status: 302,
notice: "Successfully deleted. #{@push_access_level.humanize} will not be able to push to this protected branch."
end
end
......
......@@ -8,6 +8,7 @@ module Projects
@create_access_level.destroy
redirect_to namespace_project_protected_tag_path(@project.namespace, @project, @protected_tag),
status: 302,
notice: "Successfully deleted. #{@create_access_level.humanize} will not be able to create this protected tag."
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment