Commit 1ec9ef59 authored by Rémy Coutable's avatar Rémy Coutable

Ensure Projects::ApproversController inherits from Projects::ApplicationController

Fix gitlab-org/gitlab-ce#14503.
parent 01d6f535
class Projects::ApproversController < ApplicationController class Projects::ApproversController < Projects::ApplicationController
def destroy def destroy
if params[:merge_request_id] if params[:merge_request_id]
authorize_create_merge_request! authorize_create_merge_request!
...@@ -8,7 +8,7 @@ class Projects::ApproversController < ApplicationController ...@@ -8,7 +8,7 @@ class Projects::ApproversController < ApplicationController
authorize_admin_project! authorize_admin_project!
project.approvers.find(params[:id]).destroy project.approvers.find(params[:id]).destroy
end end
redirect_back_or_default(default: { action: 'index' }) redirect_back_or_default(default: { action: 'index' })
end end
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