Make Projects Read Only via UI
At the moment GitLab users can set a project to read-only via the gitlab-rails console as below.
#Find the project by name p = Project.find_by_name("<project-name>") #Set repository read-only to true p.update!(repository_read_only: true)
This functionality means only being available via the gitlab-rails console means that users on .com cannot make their projects read-only without archiving them. The downside of archiving is that the project in question is then not accessible via the dashboard which might not be desirable.
Add an option in the "Advanced Settings" under "General Settings" for projects that allows a project to be marked as read-only via the user interface.