From 4883ace2ed0424b3eb36a3f43d4ffad03299ccc8 Mon Sep 17 00:00:00 2001 From: Son NK Date: Sun, 7 Jul 2019 22:45:15 +0200 Subject: [PATCH] only show "create custom alias" button to users who can --- app/dashboard/templates/dashboard/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index f71d98cd..54d9504e 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -21,9 +21,11 @@ - - Create custom alias - + {% if current_user.can_create_custom_email() %} + + Create custom alias + + {% endif %}