Commit f9ba4c54 authored by Nick Thomas's avatar Nick Thomas

Fix conflicts in library code

parent 6f8406ae
...@@ -169,7 +169,6 @@ constraints(ProjectUrlConstrainer.new) do ...@@ -169,7 +169,6 @@ constraints(ProjectUrlConstrainer.new) do
end end
end end
<<<<<<< HEAD
## EE-specific ## EE-specific
resources :path_locks, only: [:index, :destroy] do resources :path_locks, only: [:index, :destroy] do
collection do collection do
...@@ -181,8 +180,6 @@ constraints(ProjectUrlConstrainer.new) do ...@@ -181,8 +180,6 @@ constraints(ProjectUrlConstrainer.new) do
get '/service_desk' => 'service_desk#show', as: :service_desk get '/service_desk' => 'service_desk#show', as: :service_desk
put '/service_desk' => 'service_desk#update', as: :service_desk_refresh put '/service_desk' => 'service_desk#update', as: :service_desk_refresh
=======
>>>>>>> ce/master
resources :variables, only: [:index, :show, :update, :create, :destroy] resources :variables, only: [:index, :show, :update, :create, :destroy]
resources :triggers, only: [:index, :create, :edit, :update, :destroy] do resources :triggers, only: [:index, :create, :edit, :update, :destroy] do
member do member do
......
...@@ -519,13 +519,10 @@ module API ...@@ -519,13 +519,10 @@ module API
def expose_members_count_with_descendants?(namespace, opts) def expose_members_count_with_descendants?(namespace, opts)
namespace.kind == 'group' && Ability.allowed?(opts[:current_user], :admin_group, namespace) namespace.kind == 'group' && Ability.allowed?(opts[:current_user], :admin_group, namespace)
end end
<<<<<<< HEAD
# EE-only # EE-only
expose :shared_runners_minutes_limit, if: lambda { |_, options| options[:current_user]&.admin? } expose :shared_runners_minutes_limit, if: lambda { |_, options| options[:current_user]&.admin? }
expose :plan, if: -> (namespace, opts) { Ability.allowed?(opts[:current_user], :admin_namespace, namespace) } expose :plan, if: -> (namespace, opts) { Ability.allowed?(opts[:current_user], :admin_namespace, namespace) }
=======
>>>>>>> ce/master
end end
class MemberAccess < Grape::Entity class MemberAccess < Grape::Entity
......
...@@ -18,7 +18,6 @@ module API ...@@ -18,7 +18,6 @@ module API
namespaces = namespaces.search(params[:search]) if params[:search].present? namespaces = namespaces.search(params[:search]) if params[:search].present?
present paginate(namespaces), with: Entities::Namespace, current_user: current_user present paginate(namespaces), with: Entities::Namespace, current_user: current_user
<<<<<<< HEAD
end end
desc 'Update a namespace' do desc 'Update a namespace' do
...@@ -40,8 +39,6 @@ module API ...@@ -40,8 +39,6 @@ module API
else else
render_validation_error!(namespace) render_validation_error!(namespace)
end end
=======
>>>>>>> ce/master
end end
end end
end end
......
<<<<<<< HEAD
require 'declarative_policy'
=======
require_dependency 'declarative_policy' require_dependency 'declarative_policy'
>>>>>>> ce/master
module API module API
# Projects API # Projects API
......
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