summaryrefslogtreecommitdiffstats
path: root/expo/views_caves.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-06-12 05:39:30 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-06-12 05:39:30 +0100
commit5db52862f6d2ebcc3c3878f2442f68e3d4372d72 (patch)
tree34ae0cf6242f101e4cbfe06d66b2a18b7fa4f657 /expo/views_caves.py
parent0ed153f2d0fd38dfe94a686621a0e70922233920 (diff)
downloadtroggle-5db52862f6d2ebcc3c3878f2442f68e3d4372d72.tar.gz
troggle-5db52862f6d2ebcc3c3878f2442f68e3d4372d72.tar.bz2
troggle-5db52862f6d2ebcc3c3878f2442f68e3d4372d72.zip
[svn] * Fix bugs that were causing broken wikilinks. *Add edit link to mugshots. *make admin url trailing-slash tolerant
Diffstat (limited to 'expo/views_caves.py')
-rw-r--r--expo/views_caves.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/expo/views_caves.py b/expo/views_caves.py
index b2fb170..d633c36 100644
--- a/expo/views_caves.py
+++ b/expo/views_caves.py
@@ -25,7 +25,7 @@ def caveindex(request):
def cave(request, cave_id='', offical_name=''):
cave=getCave(cave_id)
- if cave.non_public:
+ if cave.non_public and not request.user.is_authenticated():
return render_response(request,'nonpublic.html', {'instance': cave})
else:
return render_response(request,'cave.html', {'cave': cave})