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:
parent
36e0fa6fd6
commit
c8eccf4266
1 changed files with 1 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue