Commit 8c948548 authored by Rubén Dávila's avatar Rubén Dávila

Logged in user should be able to read internal forks.

parent f96ce407
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment