fix for sidebar display bug

when an admin goes to a course he is not enrolled or created