summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/todolists/view.html2
-rw-r--r--todolists/urls.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index 1b9a9e37..a96297cf 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -45,8 +45,10 @@
<div><label for="id_repo_{{ repo.name|lower }}" title="Target Repository {{ repo.name }}">[{{ repo.name|lower }}]</label>
<input type="checkbox" name="repo_{{ repo.name|lower }}" id="id_repo_{{ repo.name|lower }}" class="repo_filter" value="{{ repo.name|lower }}" checked="checked"/></div>
{% endfor %}
+ {% if user.is_authenticated %}
<div><label for="id_mine_only" title="Show only packages maintained by me">Only Mine</label>
<input type="checkbox" name="mine_only" id="id_mine_only" value="mine_only"/></div>
+ {% endif %}
<div><label for="id_incomplete" title="Packages not yet completed">Only Incomplete</label>
<input type="checkbox" name="incomplete" id="id_incomplete" value="incomplete"/></div>
<div ><label>&nbsp;</label><input title="Reset search criteria" type="button" id="criteria_reset" value="Reset"/></div>
diff --git a/todolists/urls.py b/todolists/urls.py
index a4f93da7..6617d7dd 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/$',