Disable Performance bar shortcut for non-admin users
Summary
Disable Performance bar shortcut for non-admin users
Steps to reproduce
- Login in as non-admin user
- Press
p b
- The page will reload
What is the expected correct behavior?
The Page should not reload and not save the perf_bar_enabled
cookie
Relevant logs and/or screenshots
perf_bar_enabled
Cookie (Removed some other cookies for security reasons)
Output of checks
This bug happens on GitLab.com
Possible fixes
Set Roles to this line with if conditions
Edited by Ghost User