From 89d23f11a3d6231ba62924732347cd17a2e90517 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Tue, 13 Feb 2018 13:51:59 +0300 Subject: [PATCH] Fix user menu --- project/templates/lilcity/index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html index 9f6273b4..2737a719 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -135,14 +135,13 @@ {% endif %}
{% comment %} 234.120.345 руб. {% endcomment %} - {% with roles='author admin' %} - {% if request.user.role in roles.split and request.user.auth_token %} - {{request.user.auth_token}} + {% if request.user.auth_token %} + {% if request.user.role == 1 or request.user.role == 2 %} {% else %} {% endif %} - {% endwith %} + {% endif %}
ДОБАВИТЬ КУРС