Commit 07242f81 authored by Nick Thomas's avatar Nick Thomas

Fix conflicts in support code

parent ef0ba26f
......@@ -191,11 +191,8 @@ constraints(ProjectUrlConstrainer.new) do
post :stop
get :terminal
get :metrics
<<<<<<< HEAD
get :status, constraints: { format: :json }
=======
get :additional_metrics
>>>>>>> ce/master
get :status, constraints: { format: :json }
get '/terminal.ws/authorize', to: 'environments#terminal_websocket_authorize', constraints: { format: nil }
end
......
......@@ -129,11 +129,10 @@ module API
expose :repository_storage, if: lambda { |_project, options| options[:current_user].try(:admin?) }
expose :request_access_enabled
expose :only_allow_merge_if_all_discussions_are_resolved
<<<<<<< HEAD
expose :approvals_before_merge
=======
expose :printing_merge_request_link_enabled
>>>>>>> ce/master
# EE only
expose :approvals_before_merge
expose :statistics, using: 'API::Entities::ProjectStatistics', if: :statistics
end
......
......@@ -71,7 +71,6 @@ module API
end
#
<<<<<<< HEAD
# Get a ssh key using the fingerprint
#
get "/authorized_keys" do
......@@ -84,10 +83,7 @@ module API
end
#
# Discover user by ssh key
=======
# Discover user by ssh key or user id
>>>>>>> ce/master
#
get "/discover" do
if params[:key_id]
......
......@@ -28,11 +28,7 @@ module Gitlab
def levels_for_user(user = nil)
return [PUBLIC] unless user
<<<<<<< HEAD
if user.has_full_private_access?
=======
if user.admin?
>>>>>>> ce/master
[PRIVATE, INTERNAL, PUBLIC]
elsif user.external?
[PUBLIC]
......
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