updated accounting view permission

This commit is contained in:
Alexander Werner 2017-04-10 20:30:27 +02:00
parent 0f324b8a17
commit 0a6704b191

View File

@ -5,7 +5,7 @@ from rest_framework import viewsets
from django.shortcuts import render, redirect from django.shortcuts import render, redirect
from django.views import generic from django.views import generic
from django.views.generic.detail import DetailView 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.db.models import Min, Sum
from django.http import HttpResponse from django.http import HttpResponse
@ -56,6 +56,7 @@ def accountmodalconfirmview(request, pk):
@login_required @login_required
@permission_required('billard.change_accounting')
def accounting(request): def accounting(request):
if request.method == 'GET': if request.method == 'GET':
template = 'billard/accounting.html' template = 'billard/accounting.html'