mirror of https://gitlab.com/brutaldon/brutaldon
Fix crash of privacy page for logged out user
This commit is contained in:
parent
fb2f9bc8a3
commit
56114c251f
|
@ -638,7 +638,7 @@ def about(request):
|
||||||
def privacy(request):
|
def privacy(request):
|
||||||
return render(request, 'privacy.html',
|
return render(request, 'privacy.html',
|
||||||
{"fullbrutalism": fullbrutalism_p(request),
|
{"fullbrutalism": fullbrutalism_p(request),
|
||||||
'own_acct' : request.session['user', None]})
|
'own_acct' : request.session.get('user', None)})
|
||||||
|
|
||||||
@cache_page(60 * 30)
|
@cache_page(60 * 30)
|
||||||
@br_login_required
|
@br_login_required
|
||||||
|
|
Loading…
Reference in New Issue