From b61f9392a68005d294319669bcc104a092afcecb Mon Sep 17 00:00:00 2001 From: Dmitry Belan Date: Sat, 19 Sep 2026 15:31:17 +0300 Subject: [PATCH] feat: add admin panel button for staff users --- lmsege/lms/templates/lms/base.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lmsege/lms/templates/lms/base.html b/lmsege/lms/templates/lms/base.html index e6a376f..c8ac3e3 100644 --- a/lmsege/lms/templates/lms/base.html +++ b/lmsege/lms/templates/lms/base.html @@ -24,6 +24,9 @@
{% if user.is_authenticated %} + {% if user.is_staff %} + Админ-панель + {% endif %} Привет, {{ user.first_name|default:user.username }}
{% csrf_token %}