I wish to deny to push changes to any repository by any user. Technically, I need to switch whole gitlab to read-only mode. Is there simple way to do this?
If you don't want to mess with the user privileges (as done in this PR), one approach would be to change the gitlab-shell pre-receive hook.
If the pre-receive hook always "exit 1
", that should disable any push to any repo.
Actually a better answer is to change this flag to true. This makes the entire instance read only and adds a nice header in the app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With