Forks with higher repository access level than their parent are still linked

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Currently, when a parent of a fork lowers its repository access level, the forks won't follow it. In #36662 (closed), we are going to copy the repository access level (and related ones) of parent when forking. But the following scenario will still be possible:

  1. Parent has repository access level set to Everyone With Access
  2. A fork of that project is created
  3. Parent has its repository access level down to Only Project Members

Proposal

  1. Unlink forks when the parent access levels become more restrictive
  2. Show a modal to indicate that this is going to happen when the access level becomes restrictive

This is just like what we have for project visibility level.

Edited by 🤖 GitLab Bot 🤖