diff options
Diffstat (limited to 'app/graphql/types/project_type.rb')
-rw-r--r-- | app/graphql/types/project_type.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/graphql/types/project_type.rb b/app/graphql/types/project_type.rb index f8a516501c3..992663b4d98 100644 --- a/app/graphql/types/project_type.rb +++ b/app/graphql/types/project_type.rb @@ -727,6 +727,8 @@ module Types if minimum_access_level.nil? object.forks.public_or_visible_to_user(current_user) else + return [] if current_user.nil? + object.forks.visible_to_user_and_access_level(current_user, minimum_access_level) end end |