Ajout gestion d'imprimeurs supplementaires aux clubs
darcs-hash:20080925150938-ddb99-b14a05653652f20395d564ee514a4de72896c18b.gz
This commit is contained in:
parent
a1df248e34
commit
0bee1d7cde
4 changed files with 98 additions and 34 deletions
|
@ -164,11 +164,8 @@ 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']:
|
||||
elif (adh.id() not in club._data['responsable']
|
||||
and adh.id() not in club.imprimeurs()):
|
||||
raise Exception, "Pas respo club"
|
||||
cherrypy.session['uid'] = login_club
|
||||
cherrypy.session['droits'] = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue