Fix #597: Ensure admin links in sidebar are displayed for users with relavant...

Fix #597: Ensure admin links in sidebar are displayed for users with relavant permissions, and only them
8 jobs for 597-sidebar in 5 minutes and 43 seconds (queued for 1 second)