diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-05-29 20:50:07 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-05-29 20:50:07 +0300 |
commit | 08a17d15e3144af8f9e9dcef6da2ab69dba55e3e (patch) | |
tree | a6ad2a8dc947a79d3010fd4a462d14d3e2864ec1 /app/services | |
parent | fd2993b5349007441bc1cf4734e05696b3797e22 (diff) | |
parent | be9ffbafbba1b105bba3102cf7b5d93296478223 (diff) |
Merge branch '30917-wiki-is-not-searchable-with-guest-permissions' into 'master'
Resolve "Wiki is not searchable with Guest permissions"
Closes #30917
See merge request !11613
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/search_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/search_service.rb b/app/services/search_service.rb index 22736c71725..1d4d03a8b7d 100644 --- a/app/services/search_service.rb +++ b/app/services/search_service.rb @@ -12,7 +12,7 @@ class SearchService @project = if params[:project_id].present? the_project = Project.find_by(id: params[:project_id]) - can?(current_user, :download_code, the_project) ? the_project : nil + can?(current_user, :read_project, the_project) ? the_project : nil else nil end |