mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-23 00:01:16 +00:00
Allow more than one bar if someone can connect to the counter
This commit is contained in:
parent
52a0913993
commit
dcd0c1fe75
@ -412,7 +412,7 @@ class CounterLogin(RedirectView):
|
||||
if user in self.counter.sellers.all() and not user in self.counter.get_barmen_list():
|
||||
if len(self.counter.get_barmen_list()) <= 0:
|
||||
self.counter.gen_token()
|
||||
request.session['counter_token'] = self.counter.token
|
||||
request.session['counter_token'] = self.counter.token
|
||||
self.counter.add_barman(user)
|
||||
else:
|
||||
self.errors += ["sellers"]
|
||||
|
Loading…
Reference in New Issue
Block a user