mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-18 12:13:24 +00:00
counter: redirect to counter main when barman login is timed out
This commit is contained in:
parent
05256bb99a
commit
efb70652af
@ -370,7 +370,9 @@ class CounterClick(CounterTabsMixin, CanViewMixin, DetailView):
|
|||||||
)
|
)
|
||||||
or len(obj.get_barmen_list()) < 1
|
or len(obj.get_barmen_list()) < 1
|
||||||
):
|
):
|
||||||
raise PermissionDenied
|
return HttpResponseRedirect(
|
||||||
|
reverse_lazy("counter:details", kwargs={"counter_id": obj.id})
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
if not request.user.is_authenticated:
|
if not request.user.is_authenticated:
|
||||||
raise PermissionDenied
|
raise PermissionDenied
|
||||||
|
Loading…
Reference in New Issue
Block a user