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