Skip to content
代码片段 群组 项目
未验证 提交 e226c169 编辑于 作者: David Fernandez's avatar David Fernandez
浏览文件

Use the `.all_projects` scope

上级 10736e4f
No related branches found
No related tags found
无相关合并请求
......@@ -59,9 +59,8 @@ def packages_for_multiple_projects
# Returns the projects that the current user can view within a group.
def projects_visible_to_current_user
::Project
.in_namespace(group.self_and_descendants.select(:id))
.public_or_visible_to_user(current_user)
group.all_projects
.public_or_visible_to_user(current_user)
end
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册