Admin mode for git operations
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
From the discussion in !49904 (comment 471997265)
Currently the ProtectedRef checks use User#admin? to allow access to admins to modify the refs. This does not take into account admin mode.
This also applies for reads on repositories that admins would not normally have access to except when enabling admin mode.
We should figure out a way that allows admins to enable admin mode purposefully using git-clients, while protecting them from actions they wouldn't be allowed to do without elevated permissions.
Edited by 🤖 GitLab Bot 🤖