mirror of
https://github.com/ae-utbm/sith.git
synced 2026-11-05 00:39:32 +00:00
fix club counter click
This commit is contained in:
1 parent
7ca9c8dc42
commit
19fdaf4c89
2 files changed
+49
-2
No files matched your search
+1
-1
@@ -329,7 +329,7 @@ class CounterClick(CounterTabsMixin, CanViewMixin, DetailView):
|
||||
raise Http404
|
||||
if obj.type != "BAR" and not request.user.is_authenticated:
|
||||
raise PermissionDenied
|
||||
if (
|
||||
if obj.type == "BAR" and (
|
||||
"counter_token" not in request.session
|
||||
or request.session["counter_token"] != obj.token
|
||||
or len(obj.barmen_list) == 0
|
||||
|
||||
Reference in new issue
Block a user