Skip to content
代码片段 群组 项目
提交 eff4f94c 编辑于 作者: Vasilii Iakliushin's avatar Vasilii Iakliushin
浏览文件

Fix 500 error from `visibleForks` when user is not authorized

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/416638

**Problem**

When user is not authorized, then `visible_to_user_and_access_level`
scope raises an exception.

**Solution**

Return an empty collection of visible forks with minimal access for
unauthorized users.

Changelog: fixed
上级 4cffc622
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册