Skip to content

Commit

Permalink
login required for invites page
Browse files Browse the repository at this point in the history
  • Loading branch information
ischneider committed Oct 8, 2012
1 parent dfda084 commit 7fc05c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core import urlresolvers
from django.views.generic.simple import direct_to_template
from django.views.generic import RedirectView
Expand Down Expand Up @@ -72,7 +73,7 @@ def post(self, req, *args, **kw):
(r'^data/create_annotations_layer/(?P<mapid>\d+)$','create_annotations_layer'),
url(r'^mapstory/donate$',direct_to_template, {"template":"mapstory/donate.html"},name='donate'),
url(r'^mapstory/thanks$',direct_to_template, {"template":"mapstory/thanks.html"}),
url(r'^mapstory/invites$',direct_to_template, {"template":"mapstory/invites.html"}, name='invites_page'),
url(r'^mapstory/invites$',login_required(direct_to_template), {"template":"mapstory/invites.html"}, name='invites_page'),
url(r'^mapstory/invites/preview$', 'invite_preview', name='invite_preview'),
url(r'^mapstory/alerts$','alerts',name='alerts'),
url(r'^mapstory/tile/(?P<mapid>\d+)$','map_tile',name='map_tile'),
Expand Down

0 comments on commit 7fc05c9

Please sign in to comment.