diff options
-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) |