on envoi un mail roots quand il y a des modifications dans les droits

(en envoi le whos de l'adhrent)

darcs-hash:20050211103107-4ec08-82d4904218d29aef22e9713bfdcb25a45558036c.gz
This commit is contained in:
chove 2005-02-11 11:31:07 +01:00
parent 2e766deefb
commit e19194147e
3 changed files with 47 additions and 8 deletions

View file

@ -197,7 +197,7 @@ class crans_ldap :
'club' : [ 'nom', 'chbre' ] }
# Champs de recherche pour la recherche manuelle (en plus de la recherche auto)
non_auto_search_champs = { 'adherent' : [ 'etudes', 'paiement', 'carteEtudiant', 'aid' , 'postalAddress', 'historique' ,'blacklist', 'droits', 'uidNumber' ], \
non_auto_search_champs = { 'adherent' : [ 'etudes', 'paiement', 'carteEtudiant', 'aid' , 'postalAddress', 'historique' ,'blacklist', 'droits', 'uidNumber', 'uid' ], \
'machine' : [ 'mid' , 'ipsec', 'historique', 'blacklist' , 'puissance', 'canal', 'portTCPin', 'portTCPout', 'portUDPin', 'portUDPout' , 'prise' ] ,
'club' : [ 'cid' , 'responsable', 'paiement', 'historique', 'blacklist'] }
@ -1183,7 +1183,7 @@ class base_proprietaire(base_classes_crans) :
# Modif des droits ?
if 'droits' in self.modifs :
self.services_to_restart('droits')
self.services_to_restart('droits',[self._data['uid']])
# Remise à zero
self.modifs=[]