From 69fa7d00911a0ed1fdc0befa7e7d033272e7301f Mon Sep 17 00:00:00 2001 From: Simon Latapie Date: Sat, 25 Jan 2020 22:41:55 +0100 Subject: [PATCH] new user: disable kobo token on new user page kobo token generator function is related to a user id, which is not present on new user page. Disable the Kobo token part when creating a new user. --- cps/templates/user_edit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index 9ef11979..fba029ef 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -55,7 +55,7 @@ {% endfor %} {% endif %} - {% if feature_support['kobo'] %} + {% if feature_support['kobo'] and not new_user %}
{{_('Create/View')}}