From 57deb331199cfac527aa2fc61209a3bd18289d0e Mon Sep 17 00:00:00 2001 From: TareqMonwer Date: Mon, 4 Nov 2024 21:07:55 +0600 Subject: [PATCH] update dashboard menu checks --- templates/_sidebar.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/_sidebar.html b/templates/_sidebar.html index ce50eef..c83b4bf 100644 --- a/templates/_sidebar.html +++ b/templates/_sidebar.html @@ -145,6 +145,7 @@ + {% if user.approval_status == 'a' and user|has_role:'academic_officer, admin' %}
  • - Create Semester @@ -198,13 +199,14 @@
  • - Semesters
  • + {% endif %} - {% if user|has_role:'accounts, admin' %} + {% if user.approval_status == 'a' and user|has_role:'accounts, admin' %} {% endif %} - {% if user|has_role:'admin' %} + {% if user.approval_status == 'a' and user|has_role:'admin' %}