If SSH access is disabled in System config, users still get the "SSH Keys" in their settings menu
Summary
If SSH access is disabled in System config, users still get the "SSH Keys" in their settings menu.
Steps to reproduce
- Log in to a Gitlab setup as admin
- Access the System Settings under the Admin Area
- Set "Enabled Git access protocols" to "Only HTTP(S)"
- Save the config
- Log in as a user and look at the settings menu
- Note that there still is a "SSH Keys" menu option, which is now useless.
Example Project
Not a project thing.
What is the current bug behavior?
The user settings menu shows a useless "SSH Keys" menu option.
What is the expected correct behavior?
The user settings menu no longer shows the "SSH Keys" menu option when SSH is disabled.