summaryrefslogtreecommitdiffstats
path: root/expo/views_caves.py
diff options
context:
space:
mode:
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})