Skip to content
Snippets Groups Projects
Commit 7fa1d860 authored by Frank Poetzsch-Heffter's avatar Frank Poetzsch-Heffter
Browse files

hide 'Anträge' for users, set new permission check_booking

parent 8e08777d
No related branches found
No related tags found
No related merge requests found
......@@ -86,4 +86,5 @@ class Booking(models.Model):
permissions = [
('manage_booking', 'Can manage bookings'),
('request_booking', 'Can request a booking'),
('check_booking', 'Can check bookings'),
]
......@@ -73,7 +73,7 @@ def edit(request, id):
@login_required
@permission_required('fibu.manage_booking')
@permission_required('fibu.check_booking')
def check(request):
if request.method == 'POST':
if 'booking-id' in request.POST:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment