mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-21 23:01:52 +00:00
fix bug
This commit is contained in:
parent
5b23b2df8a
commit
a6ca40becd
@ -784,7 +784,7 @@ def caveQMs(request, slug, open=False):
|
|||||||
relies on the template to find all the QMs for the cave specified in the slug, e.g. '1623-161'
|
relies on the template to find all the QMs for the cave specified in the slug, e.g. '1623-161'
|
||||||
Now working in July 2022
|
Now working in July 2022
|
||||||
"""
|
"""
|
||||||
if not (cave:= get_cave_from_slug(caveslug)): # walrus operator
|
if not (cave:= get_cave_from_slug(slug)): # walrus operator
|
||||||
return render(request, "errors/badslug.html", {"badslug": f"{slug} - from caveQMs()"})
|
return render(request, "errors/badslug.html", {"badslug": f"{slug} - from caveQMs()"})
|
||||||
|
|
||||||
if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated:
|
if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated:
|
||||||
|
Loading…
Reference in New Issue
Block a user