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
f9ba4c54
Commit
f9ba4c54
authored
Jun 30, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts in library code
parent
6f8406ae
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
13 deletions
+0
-13
config/routes/project.rb
config/routes/project.rb
+0
-3
lib/api/entities.rb
lib/api/entities.rb
+0
-3
lib/api/namespaces.rb
lib/api/namespaces.rb
+0
-3
lib/api/projects.rb
lib/api/projects.rb
+0
-4
No files found.
config/routes/project.rb
View file @
f9ba4c54
...
@@ -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
...
...
lib/api/entities.rb
View file @
f9ba4c54
...
@@ -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
...
...
lib/api/namespaces.rb
View file @
f9ba4c54
...
@@ -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
...
...
lib/api/projects.rb
View file @
f9ba4c54
<<<<<<<
HEAD
require
'declarative_policy'
=======
require_dependency
'declarative_policy'
require_dependency
'declarative_policy'
>>>>>>>
ce
/
master
module
API
module
API
# Projects API
# Projects API
...
...
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