Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
07242f81
Commit
07242f81
authored
Jun 23, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts in support code
parent
ef0ba26f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
16 deletions
+4
-16
config/routes/project.rb
config/routes/project.rb
+1
-4
lib/api/entities.rb
lib/api/entities.rb
+3
-4
lib/api/internal.rb
lib/api/internal.rb
+0
-4
lib/gitlab/visibility_level.rb
lib/gitlab/visibility_level.rb
+0
-4
No files found.
config/routes/project.rb
View file @
07242f81
...
...
@@ -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
...
...
lib/api/entities.rb
View file @
07242f81
...
...
@@ -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
...
...
lib/api/internal.rb
View file @
07242f81
...
...
@@ -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
]
...
...
lib/gitlab/visibility_level.rb
View file @
07242f81
...
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment