Make Projects Read Only via UI
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=20352) </details> <!--IssueSummary end--> ### Description 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. ### Proposal 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. ![project_read_only](/uploads/0eeb5f00b2db0ea384be928f0ef3baed/project_read_only.png) ### Links / references https://gitlab.zendesk.com/agent/tickets/85798
issue