From 9a84fb7c6f1b906978efdd8927869e110f0f0a1d Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Tue, 13 Feb 2018 14:27:34 +0300 Subject: [PATCH] Dont show add course menu item if user not have perms --- 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 c3b89cef..eddb7422 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -138,12 +138,11 @@ {% if request.user.auth_token %} {% if request.user.role == 1 or request.user.role == 2 %} - {% else %} - - {% endif %} - {% endif %} + {% comment %} {% endcomment %}
ДОБАВИТЬ КУРС
+ {% endif %} + {% endif %}
ПРОФИЛЬ