Logged in user should be able to read internal forks.
This commit is contained in:
parent
f96ce4079f
commit
8c948548e1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue