Prompt to add a SSH key to profile should not appear when SSH is globally disabled
Summary
When an account does not have any SSH keys added, a warning bar appears:
You won't be able to pull or push project code via SSH until you add an SSH key to your profile
This warning appears even when SSH is globally disabled as a git protocol.
Steps to reproduce
- Create a new account that does not have any SSH keys added; or alternatively, delete all SSH keys for a given account.
- As administrator, disable the SSH git protocol globally.
- Visit an existing repository to see the warning banner.
Expected behavior
- No banner.
Actual behavior
- A warning appears to add SSH keys that will never be used.