Note that has_access supports either new or old locations. But I must use old_location for verifying users registered in groups and enrolling staff in the course.