corretion du bug qui empechait de rajouter une machine wifi
darcs-hash:20061020085425-f46e9-2485399c4f835bad89b03248842730cd804c06e0.gz
This commit is contained in:
parent
ac2e43a1c9
commit
04e67f6795
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ class monCompte:
|
|||
##########################
|
||||
def creerMachine(self, nomNouvelleMachine, MACNouvelleMachine, estMachineWifi='0'):
|
||||
adh = self.__ldap.search('uid=' + cherrypy.session['uid'])['adherent'][0]
|
||||
if adh.droits() == [] and adh.machines_fixes() != []:
|
||||
if estMachineWifi=='0' 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 estMachineWifi=='true':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue