Skip to content
  • Vasilii Iakliushin's avatar
    Fix 500 error from `visibleForks` when user is not authorized · eff4f94c
    Vasilii Iakliushin authored
    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
    eff4f94c