updated accounting view permission
This commit is contained in:
		@@ -5,7 +5,7 @@ from rest_framework import viewsets
 | 
			
		||||
from django.shortcuts import render, redirect
 | 
			
		||||
from django.views import generic
 | 
			
		||||
from django.views.generic.detail import DetailView
 | 
			
		||||
from django.contrib.auth.decorators import login_required
 | 
			
		||||
from django.contrib.auth.decorators import login_required, permission_required
 | 
			
		||||
from django.db.models import Min, Sum
 | 
			
		||||
from django.http import HttpResponse
 | 
			
		||||
 | 
			
		||||
@@ -56,6 +56,7 @@ def accountmodalconfirmview(request, pk):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@login_required
 | 
			
		||||
@permission_required('billard.change_accounting')
 | 
			
		||||
def accounting(request):
 | 
			
		||||
    if request.method == 'GET':
 | 
			
		||||
        template = 'billard/accounting.html'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user