Commit 535b0878 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'ee-reduce-diff-with-ee-in-protected_refs_controller' into 'master'

Reduce diff with CE in ProtectedRefsController

See merge request gitlab-org/gitlab-ee!8896
parents f3aa538b e07b99df
...@@ -62,6 +62,8 @@ class Projects::ProtectedRefsController < Projects::ApplicationController ...@@ -62,6 +62,8 @@ class Projects::ProtectedRefsController < Projects::ApplicationController
end end
def access_level_attributes def access_level_attributes
%i(access_level id user_id _destroy group_id) %i[access_level id]
end end
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