Hides the edit button when you are not enrolled in a course

As an admin I might not be enrolled in any courses, so the edit button
does nothing.