mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-04 11:03:04 +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
 | 
					                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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user