diff --git a/cps/templates/detail.html b/cps/templates/detail.html index e1c398ed..1dbb7a6c 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -40,7 +40,7 @@ {% endif %} {% endif %} - {% if g.user.kindle_mail and g.user.is_authenticated and kindle_list %} + {% if g.user.kindle_mail and kindle_list %} {% if kindle_list.__len__() == 1 %} {{kindle_list[0]['text']}} {% else %} diff --git a/cps/ub.py b/cps/ub.py index 4b69a457..caa320ae 100644 --- a/cps/ub.py +++ b/cps/ub.py @@ -211,6 +211,7 @@ class Anonymous(AnonymousUserMixin, UserBase): self.locale = data.locale self.mature_content = data.mature_content self.anon_browse = settings.config_anonbrowse + self.kindle_mail = data.kindle_mail def role_admin(self): return False