mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +00:00
Acl pour le visualisation des tickets
This commit is contained in:
parent
0596df673f
commit
a42624d0d9
1 changed files with 2 additions and 2 deletions
|
@ -61,9 +61,8 @@ def new_ticket(request):
|
|||
|
||||
@login_required
|
||||
@can_view(Ticket)
|
||||
def aff_ticket(request,ticketid):
|
||||
def aff_ticket(request, ticket, ticketid):
|
||||
"""Vue d'affichage d'un ticket"""
|
||||
ticket = Ticket.objects.filter(id=ticketid).get()
|
||||
changestatusform = ChangeStatusTicketForm(request.POST)
|
||||
if request.method == 'POST':
|
||||
ticket.solved = not ticket.solved
|
||||
|
@ -98,6 +97,7 @@ def aff_tickets(request):
|
|||
|
||||
return render(request,'tickets/index.html',context=context)
|
||||
|
||||
|
||||
def edit_preferences(request):
|
||||
""" Vue d'édition des préférences des tickets """
|
||||
|
||||
|
|
Loading…
Reference in a new issue