Fix logic in NamespaceInfo::getRestrictionLevels