Ajout logins @club-bde dans l'intranet (hack temporaire)

darcs-hash:20080417172253-ddb99-7873e54b073f350b3fd6cd5adca8175524b00cdc.gz
This commit is contained in:
Michel Blockelet 2008-04-17 19:22:53 +02:00
parent affbc9f1f3
commit 455054a824

View file

@ -164,6 +164,10 @@ def verifLogin(login = '', password = ''):
if login_club == 'club-crans':
if u'Nounou' not in adh.droits() and u'Bureau' not in adh.droits():
raise Exception, "Pas respo bureau ou nounou"
# gros hack moche et temporaire car je n'ai pas trop le temps et c'est presse
elif login_club == 'club-bde':
if login not in ['queue','jmarty','recher','monge']:
raise Exception, "Pas dans les respos du BDE"
elif adh.id() not in club._data['responsable']:
raise Exception, "Pas respo club"
cherrypy.session['uid'] = login_club