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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
01f7d1e3
Commit
01f7d1e3
authored
Jun 29, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into fix/import-export-events
parents
f85f5a45
d33991f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
14 deletions
+7
-14
CHANGELOG
CHANGELOG
+2
-0
app/finders/pipelines_finder.rb
app/finders/pipelines_finder.rb
+2
-2
app/models/member.rb
app/models/member.rb
+1
-0
app/models/project_team.rb
app/models/project_team.rb
+2
-12
No files found.
CHANGELOG
View file @
01f7d1e3
...
...
@@ -14,6 +14,7 @@ v 8.10.0 (unreleased)
- Exclude email check from the standard health check
- Fix changing issue state columns in milestone view
- Fix user creation with stronger minimum password requirements !4054 (nathan-pmt)
- PipelinesFinder uses git cache data
- Check for conflicts with existing Project's wiki path when creating a new project.
- Remove unused front-end variable -> default_issues_tracker
- Add API endpoint for a group issues !4520 (mahcsig)
...
...
@@ -26,6 +27,7 @@ v 8.9.3 (unreleased)
- Update mobile button icons to be more inline with typical UI paradigms
- Fixes missing avatar on system notes. !4954
- Fixes issues importing events in Import/Export. Import/Export version bumped to 0.1.1
- Improve performance of obtaining the maximum access of a user in a project
v 8.9.2
- Fix visibility of snippets when searching.
...
...
app/finders/pipelines_finder.rb
View file @
01f7d1e3
...
...
@@ -29,10 +29,10 @@ class PipelinesFinder
end
def
branches
project
.
repository
.
branch
es
.
map
(
&
:name
)
project
.
repository
.
branch
_names
end
def
tags
project
.
repository
.
tag
s
.
map
(
&
:name
)
project
.
repository
.
tag
_names
end
end
app/models/member.rb
View file @
01f7d1e3
...
...
@@ -32,6 +32,7 @@ class Member < ActiveRecord::Base
scope
:request
,
->
{
where
.
not
(
requested_at:
nil
)
}
scope
:non_request
,
->
{
where
(
requested_at:
nil
)
}
scope
:non_pending
,
->
{
non_request
.
non_invite
}
scope
:has_access
,
->
{
where
(
'access_level > 0'
)
}
scope
:guests
,
->
{
where
(
access_level:
GUEST
)
}
scope
:reporters
,
->
{
where
(
access_level:
REPORTER
)
}
...
...
app/models/project_team.rb
View file @
01f7d1e3
...
...
@@ -137,20 +137,10 @@ class ProjectTeam
def
max_member_access
(
user_id
)
access
=
[]
project
.
members
.
non_request
.
each
do
|
member
|
if
member
.
user_id
==
user_id
access
<<
member
.
access_field
if
member
.
access_field
break
end
end
access
+=
project
.
members
.
non_request
.
where
(
user_id:
user_id
).
has_access
.
pluck
(
:access_level
)
if
group
group
.
members
.
non_request
.
each
do
|
member
|
if
member
.
user_id
==
user_id
access
<<
member
.
access_field
if
member
.
access_field
break
end
end
access
+=
group
.
members
.
non_request
.
where
(
user_id:
user_id
).
has_access
.
pluck
(
:access_level
)
end
if
project
.
invited_groups
.
any?
&&
project
.
allowed_to_share_with_group?
...
...
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