diff options
author | Valery Sizov <valery@gitlab.com> | 2016-05-26 14:12:43 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-05-31 21:32:53 +0300 |
commit | 9154586ce5c46dfac83a1ed1e4beac1940913f16 (patch) | |
tree | f7915c3bf9e7a55ba345bcafe0beb8df06234dc7 /lib | |
parent | 32b9276c25c95e2bb9fb7805b4457fdd948ea08e (diff) |
Confidential notes data leak
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/project_search_results.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/project_search_results.rb b/lib/gitlab/project_search_results.rb index 71c5b6801fb..183bd10d6a3 100644 --- a/lib/gitlab/project_search_results.rb +++ b/lib/gitlab/project_search_results.rb @@ -74,7 +74,7 @@ module Gitlab end def notes - project.notes.user.search(query).order('updated_at DESC') + project.notes.user.search(query, as_user: @current_user).order('updated_at DESC') end def commits |