Stop Wiki clone when Wiki is disabled
What does this MR do and why?
A small MVC for https://gitlab.com/gitlab-org/gitlab/-/issues/357788 where we alter the Wiki git_access
to ensure a Wiki cannot be cloned when the Wiki feature is disabled in Project Settings.
Screenshots or screen recordings
N/A
How to set up and validate locally
- Start the GDK
> gdk start
- Visit any Project settings such as
http://localhost:3000/flightjs/Flight/-/edit
- Disable the Wiki
- Add a deploy key
- Attempt to clone the wiki
- You should not be able to clone the Wiki with the feature disabled
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #357788