Commit e07b99df authored by Rémy Coutable's avatar Rémy Coutable

Reduce diff with CE in ProtectedRefsController

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c531b2ba
......@@ -62,6 +62,8 @@ class Projects::ProtectedRefsController < Projects::ApplicationController
end
def access_level_attributes
%i(access_level id user_id _destroy group_id)
%i[access_level id]
end
end
Projects::ProtectedRefsController.prepend(::EE::Projects::ProtectedRefsController)
# frozen_string_literal: true
module EE
module Projects
module ProtectedRefsController
extend ::Gitlab::Utils::Override
protected
override :access_level_attributes
def access_level_attributes
super + %i[user_id _destroy group_id]
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