Korektury jsou pristupne jen orgum.
Pokud neni nikdo prihlasen, tak to spadne :-(
This commit is contained in:
parent
07961061e8
commit
342c8f360d
1 changed files with 3 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
||||||
from django.conf.urls import * # NOQA
|
from django.conf.urls import * # NOQA
|
||||||
from django.conf.urls import patterns, url
|
from django.conf.urls import patterns, url
|
||||||
|
from django.contrib.auth.decorators import permission_required
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
url(r'^korektury$',views.KorekturyListView.as_view(),name='korektury-list'),
|
url(r'^korektury$',permission_required('is_staff')(views.KorekturyListView.as_view()),name='korektury-list'),
|
||||||
url(r'^korektury/(?P<pdf>\d+)$', views.KorekturyView.as_view(), name='korektury'),
|
url(r'^korektury/(?P<pdf>\d+)$', permission_required('is_staff')(views.KorekturyView.as_view()), name='korektury'),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue