From c8eccf4266b23cb26a1093d67a49737114651252 Mon Sep 17 00:00:00 2001 From: gdetrez Date: Sun, 12 Nov 2006 02:47:42 +0100 Subject: [PATCH] correction, les adherents ne pouvaient pas ajouter de machine wifi mais des machines fixes ! darcs-hash:20061112014742-f46e9-0703e296fcd5dd8f4800f0143b487f4ae9c164ea.gz --- intranet/pages/mesmachines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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':