Fixed non-admins being able to edit courses, Fixed non-users breaking the page