From 7e60791c33b7632aa7d0bbcca422ee3644898acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 7 Nov 2022 22:53:08 +0100 Subject: [PATCH] Fix: #1331 --- prednasky/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prednasky/urls.py b/prednasky/urls.py index 0a96aa59..d0e7a703 100644 --- a/prednasky/urls.py +++ b/prednasky/urls.py @@ -8,13 +8,13 @@ Soubor sloužící jako „router“, tj. zde se definují url adresy a na co uk - ``prednasky/seznam_prednasek//`` (seznam-list) :class:`~prednasky.views.SeznamListView` """ from django.urls import path -from seminar.utils import org_required, resitel_required +from seminar.utils import org_required, resitel_or_org_required from . import views urlpatterns = [ path( 'prednasky/', - resitel_required(views.newPrednaska) + resitel_or_org_required(views.newPrednaska) ), path('prednasky/hotovo', views.Prednaska_hotovo), path(