mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 10:34:21 +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 user in self.counter.sellers.all() and not user in self.counter.get_barmen_list():
|
||||||
if len(self.counter.get_barmen_list()) <= 0:
|
if len(self.counter.get_barmen_list()) <= 0:
|
||||||
self.counter.gen_token()
|
self.counter.gen_token()
|
||||||
request.session['counter_token'] = self.counter.token
|
request.session['counter_token'] = self.counter.token
|
||||||
self.counter.add_barman(user)
|
self.counter.add_barman(user)
|
||||||
else:
|
else:
|
||||||
self.errors += ["sellers"]
|
self.errors += ["sellers"]
|
||||||
|
Loading…
Reference in New Issue
Block a user