Make userClass admin required

An ifefpeople record wihtout it is invalid.
This commit is contained in:
Benjamin Dauvergne 2010-09-03 15:08:03 +02:00
parent 0e254c97ec
commit 31481b9ed2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class IdentitiesStoreIFEF(authentic.identities.IdentitiesStoreLdap):
Field('homeDepartment', N_('Departement perso'),
on_register = False),
Field('userClass', N_('Classe d\'utilisateur'), read_only = True, value = 'GRAND.PUBLIC',
required = True, size = 4, widget_class = 'SingleSelectWidget',
admin_required = True, size = 4, widget_class = 'SingleSelectWidget',
options = ['GRAND.PUBLIC', 'EMPLOYEUR', 'SAL.SPE/ASSMAT', 'PRO.FORMA',
'INDIV.PART', 'SAL.IFEF' ]),
# Telephone