diff --git a/intranet/pages/mesmachines.py b/intranet/pages/mesmachines.py index 5ebdab7c..12d0f8ef 100755 --- a/intranet/pages/mesmachines.py +++ b/intranet/pages/mesmachines.py @@ -212,7 +212,7 @@ class root: ########################## def AJAXCreerMachine(self, nomNouvelleMachine, MACNouvelleMachine, typeNouvelleMachine): adh = self.__ldap.search('uid=' + cherrypy.session['uid'])['adherent'][0] - if typeNouvelleMachine=='wifi' and adh.droits() == [] and adh.machines_fixes() != []: + if typeNouvelleMachine=='fixe' and adh.droits() == [] and adh.machines_fixes() != []: return {'error':'Vous avez deja une machine fixe. Vous ne pouvez ajouter que des machines WiFi.'} try: if typeNouvelleMachine=='wifi':