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
468c9ce4
Commit
468c9ce4
authored
Jan 31, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow issues to be viewed for authenticated user when project is public or internal.
parent
9e181d36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
app/services/filtering_service.rb
app/services/filtering_service.rb
+9
-1
No files found.
app/services/filtering_service.rb
View file @
468c9ce4
...
@@ -45,7 +45,11 @@ class FilteringService
...
@@ -45,7 +45,11 @@ class FilteringService
current_user
.
send
(
table_name
)
current_user
.
send
(
table_name
)
when
'all'
then
when
'all'
then
if
current_user
if
current_user
if
project
&&
(
project
.
public?
||
project
.
internal?
)
klass
.
of_projects
(
Project
.
public_or_internal_only
(
current_user
))
else
klass
.
of_projects
(
current_user
.
authorized_projects
.
pluck
(
:id
))
klass
.
of_projects
(
current_user
.
authorized_projects
.
pluck
(
:id
))
end
else
else
klass
.
of_projects
(
Project
.
public_only
)
klass
.
of_projects
(
Project
.
public_only
)
end
end
...
@@ -120,4 +124,8 @@ class FilteringService
...
@@ -120,4 +124,8 @@ class FilteringService
items
items
end
end
def
project
Project
.
where
(
id:
params
[
:project_id
]).
first
if
params
[
:project_id
].
present?
end
end
end
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