diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-27 18:04:36 +0300 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-02-27 18:04:36 +0300 |
commit | 8c948548e193393fa0d5c728d81a1a35779b4061 (patch) | |
tree | a53f9448a6686f3005b6f48f7007788b710a4a3d /app/controllers/projects/forks_controller.rb | |
parent | f96ce4079fba7adc25d6e54b87d2f171f43d14b7 (diff) |
Logged in user should be able to read internal forks.
Diffstat (limited to 'app/controllers/projects/forks_controller.rb')
-rw-r--r-- | app/controllers/projects/forks_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/forks_controller.rb b/app/controllers/projects/forks_controller.rb index 671162e7649..a0835c9aad0 100644 --- a/app/controllers/projects/forks_controller.rb +++ b/app/controllers/projects/forks_controller.rb @@ -8,7 +8,7 @@ class Projects::ForksController < Projects::ApplicationController @forks = if current_user base_query.where('projects.visibility_level IN (?) OR projects.id IN (?)', - Project::PUBLIC, + Project.public_and_internal_levels, current_user.authorized_projects.pluck(:id)) else base_query.where('projects.visibility_level = ?', Project::PUBLIC) |