summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-05-26 14:12:43 +0300
committerValery Sizov <valery@gitlab.com>2016-05-31 21:32:53 +0300
commit9154586ce5c46dfac83a1ed1e4beac1940913f16 (patch)
treef7915c3bf9e7a55ba345bcafe0beb8df06234dc7 /lib
parent32b9276c25c95e2bb9fb7805b4457fdd948ea08e (diff)
downloadgitlab-ce-9154586ce5c46dfac83a1ed1e4beac1940913f16.tar.gz
Confidential notes data leak
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/project_search_results.rb2
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