Non-admin user cannot view Project Usage or padlock symbol of enabled deploy key
Summary
Non-admin user cannot view Project Usage or padlock symbol of enabled deploy keys under CI/CD settings -> Deploy Keys
Steps to reproduce
As a non-admin user:
- Add a deploy key to project under Settings -> CI/CD -> Deploy keys
- Look at "Project Usage", it will say "None".
This will work for "Privately accessible keys" (disabled but available) but does not work for "Enabled keys".
There are no issues if viewing the keys as the admin user.
Behavior is the same if the key has been added to multiple projects.
Example Project
Requires own login to reproduce.
What is the current bug behavior?
"Project Usage" says "None" next to the key fingerprint. Padlock symbol that represents whether the key has read/write access is not visible.
What is the expected correct behavior?
It should say "Current Project" with a padlock symbol that represents whether the key has read/write access.
Relevant logs and/or screenshots
When working, i.e. using admin user it should look like:
However when using a non-admin user:
Output of checks
Results of GitLab environment info
Tested on 12.8.2 and 12.10.1
Results of GitLab application Check
Possible fixes
Issue reported by customer in: https://gitlab.zendesk.com/agent/tickets/155101 (Internal Use Only)