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