Skip to content

Commit

Permalink
Add login_required to idw views
Browse files Browse the repository at this point in the history
  • Loading branch information
uoa-noel committed Jul 8, 2024
1 parent dcc7e75 commit e87f5c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tardis/apps/idw_download/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
from django.urls import re_path
from django.contrib.auth.decorators import login_required

from tardis.apps.idw_download.views.idwyaml import IDWYAMLView
from tardis.apps.idw_download.views.idw import IDWIndexView


app_name = "tardis.apps.idw_download"

urlpatterns = [re_path("idw-yaml/", IDWYAMLView.as_view(), name="idw-yaml"),
re_path("^$", IDWIndexView.as_view(), name="index")
urlpatterns = [
re_path("idw-yaml/", login_required(IDWYAMLView.as_view()), name="idw-yaml"),
re_path("^$", login_required(IDWIndexView.as_view()), name="index")
]

0 comments on commit e87f5c6

Please sign in to comment.