diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-03-17 16:38:51 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-03-17 20:55:38 -0300 |
commit | 34ee75379cf8e6459b8926fbf956a8316f87eea7 (patch) | |
tree | 3e6baf1c719f061d3875a24c2cd0e799f2897f04 /app/finders | |
parent | 6b86d3fb800bb551af4a446b87dfd64c963733a3 (diff) | |
download | gitlab-ce-34ee75379cf8e6459b8926fbf956a8316f87eea7.tar.gz |
Restrict access to confidential issues
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/issues_finder.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/finders/issues_finder.rb b/app/finders/issues_finder.rb index 20a2b0ce8f0..c2befa5a5b3 100644 --- a/app/finders/issues_finder.rb +++ b/app/finders/issues_finder.rb @@ -19,4 +19,10 @@ class IssuesFinder < IssuableFinder def klass Issue end + + private + + def init_collection + Issue.visible_to_user(current_user) + end end |