Un club en cours de création n'a pas nécessairement de respo
This commit is contained in:
parent
aac2a0c439
commit
5a158d7c5c
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ class lc_ldap(ldap.ldapobject.LDAPObject, object):
|
||||||
club = obj
|
club = obj
|
||||||
if isinstance(obj, objets.machine) or isinstance(obj, objets.facture):
|
if isinstance(obj, objets.machine) or isinstance(obj, objets.facture):
|
||||||
club = obj.proprio()
|
club = obj.proprio()
|
||||||
if isinstance(club, objets.club) and "aid=" + str(club['responsable'][0]) + "," + variables.base_dn == self.dn:
|
if isinstance(club, objets.club) and "aid=" + str(club.get('responsable', [''])[0]) + "," + variables.base_dn == self.dn:
|
||||||
return [attributs.respo]
|
return [attributs.respo]
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue