GitLab: You are not allowed to push code to this project. fatal: Could not read from remote repository.
We have a repository in locally hosted gitlab instance. A user created a fork of this repo under the user's name as group. Now users with Developer access to the group governing this repo( main repo not the fork) are unable to push their commits. They get the error message mentioned in the title of this issue. An interesting thing is, if a user is invited to the forked repo, that user is allowed to push the code to main repo. While others are not. The same users are allowed to push to other repos in the same group without issues. Could not find any "access_denied" messages in logs. Checked the ssh keys and config of the users and are correct.
What could be wrong? How to fix this issue?