Commit dcd0c1fe authored by Skia's avatar Skia

Allow more than one bar if someone can connect to the counter

parent 52a09139
Pipeline #674 passed with stage
in 3 minutes and 25 seconds
......@@ -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"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment