diff options
author | Valery Sizov <valery@gitlab.com> | 2017-05-22 19:51:09 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-05-22 19:51:09 +0300 |
commit | 893b1eb1d3290a662a01188d2055798778bc442a (patch) | |
tree | 586b844fb82447477ff80453d1b9e1b177300dde /app/services | |
parent | 72119e7f38d5c50d2f1333adfedd6922d3e65ad1 (diff) |
Fix: Wiki is not searchable with Guest permissions
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 |