From 00763d6e4c7802edc0b8b4f352c1d097e923cb68 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 25 Feb 2017 11:14:45 +0100 Subject: [PATCH] Read book is now tied to the right downlolad books for guest users (fixes #110) --- cps/templates/detail.html | 4 ++-- cps/web.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/templates/detail.html b/cps/templates/detail.html index 0a5167b6..9639e954 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -132,10 +132,10 @@ {% endif %} - {% if g.user.is_authenticated %} - {% if g.user.kindle_mail %} + {% if g.user.kindle_mail and g.user.is_authenticated %} {{_('Send to Kindle')}} {% endif %} + {% if (g.user.role_download() and g.user.is_anonymous()) or g.user.is_authenticated %}