When figuring out the intended profile for a given account, let primary
affiliation win; we have accounts that started as students and are now back as
faculty, and the lulStudentLevel still identifies them as undergrads. That
ain't right!
Signed-off-by: Dan Scott <dscott@laurentian.ca>
'visitor': 113
}
- for att in ('lulStudentLevel', 'lulPrimaryAffiliation', 'lulAffiliation'):
+ for att in ('lulPrimaryAffiliation', 'lulStudentLevel', 'lulAffiliation'):
if att in self.ldap_atts:
affiliation = self._simple_map(att).lower()
if affiliation in profile_map: