GitLab Pages: Hide access to 'Deploy/Pages' page if feature disabled
Problem to solve
Unlike all other features, if the 'Pages' feature is disabled, the 'Deploy/Pages' navigation button remains visible.
Good practice is to disable all unused features for each GitLab project, to improve its readability and purpose,
for example with a project holding only issues, only wikis, or only sources for example.
If the tab is accessed, this specific message shows up :
GitLab Pages are disabled for this project. You can enable them on your project's Settings > General > Visibility page.
Proposal
The 'Deploy/Pages' should be hidden if the feature is disabled.
Context
Versions:
- GitLab: gitlab/gitlab-ce:16.8.1-ce.0
Configurations:
-
Visibility, project features, permissions:
- Pages: Disabled
Related issues
- Partially related to #440345
/cc @ngala /cc @mmacfarlane
Edited by Naman Jagdish Gala