From 366bf9739b35e7628fcdccfecf3498f890a6b633 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Mon, 9 Oct 2017 22:36:47 +0200 Subject: [PATCH] Fix for #360 and guest accounts --- cps/templates/layout.html | 14 ++++++++------ cps/templates/read.html | 2 +- cps/templates/shelf.html | 2 +- cps/ub.py | 5 ++++- cps/web.py | 12 ++++++------ 5 files changed, 20 insertions(+), 15 deletions(-) diff --git a/cps/templates/layout.html b/cps/templates/layout.html index e94d367f..6eded615 100644 --- a/cps/templates/layout.html +++ b/cps/templates/layout.html @@ -34,7 +34,7 @@ {{instance}} - {% if g.user.is_authenticated or g.user.is_anonymous() %} + {% if g.user.is_authenticated() or g.user.is_anonymous() %}