diff options
author | Dan McGee <dan@archlinux.org> | 2013-03-12 00:48:29 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-03-12 00:48:31 +0100 |
commit | 6172b6dd09f932de8db7ab69641370d78d25a4c2 (patch) | |
tree | a46f37a1f384885809ae3916350f881add06a61c /todolists | |
parent | d1d40670d35213cc430d242ff96c4697bff6e26d (diff) | |
download | archweb-6172b6dd09f932de8db7ab69641370d78d25a4c2.tar.gz archweb-6172b6dd09f932de8db7ab69641370d78d25a4c2.tar.xz |
Make todolists fully public
Remove the login_required decorator from the index and detail views to
allow everyone to see the same thing. Of course, when I say "same" here,
unauthenticated users don't see the same links developers do to mark
packages complete and incomplete.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-rw-r--r-- | todolists/urls.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/todolists/urls.py b/todolists/urls.py index a4f93da..6617d7d 100644 --- a/todolists/urls.py +++ b/todolists/urls.py @@ -1,18 +1,18 @@ from django.conf.urls import patterns -from django.contrib.auth.decorators import login_required, permission_required +from django.contrib.auth.decorators import permission_required from .views import (view_redirect, view, todolist_list, add, edit, flag, list_pkgbases, DeleteTodolist) urlpatterns = patterns('', - (r'^$', login_required(todolist_list)), + (r'^$', todolist_list), # old todolists URLs, permanent redirect view so we don't break all links (r'^(?P<old_id>\d+)/$', view_redirect), (r'^add/$', permission_required('todolists.add_todolist')(add)), - (r'^(?P<slug>[-\w]+)/$', login_required(view)), + (r'^(?P<slug>[-\w]+)/$', view), (r'^(?P<slug>[-\w]+)/edit/$', permission_required('todolists.change_todolist')(edit)), (r'^(?P<slug>[-\w]+)/delete/$', |