correction, les adherents ne pouvaient pas ajouter de machine wifi mais des machines fixes !

darcs-hash:20061112014742-f46e9-0703e296fcd5dd8f4800f0143b487f4ae9c164ea.gz
This commit is contained in:
gdetrez 2006-11-12 02:47:42 +01:00
parent 36e0fa6fd6
commit c8eccf4266

View file

@ -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':