from django.urls import path
from django.contrib.auth.decorators import user_passes_test
from . import views

staff_member_required = user_passes_test(lambda u: u.is_staff)

urlpatterns = [
	path('korektury/', staff_member_required(views.KorekturyListView.as_view()), name='korektury-list'),
	path('korektury/<int:pdf>/', staff_member_required(views.KorekturyView.as_view()), name='korektury'),
	path('korektury/help/', staff_member_required(views.KorekturyHelpView.as_view()), name='korektury-help'),
]