Erreur dans le chemin du home de club

This commit is contained in:
Gabriel Detraz 2015-11-17 18:29:33 +01:00
parent 0733bfd99e
commit c4a2f1a717

View file

@ -978,7 +978,7 @@ class proprio(CransLdapObject):
else: else:
# C'est un club # C'est un club
home = u'/home/c/' + login home = u'/home/c/club/' + login.split('-', 1)[-1]
if os.path.exists(home): if os.path.exists(home):
raise ValueError('Création du compte impossible : home existant') raise ValueError('Création du compte impossible : home existant')
if os.path.exists("/home/mail/" + login): if os.path.exists("/home/mail/" + login):