Skip to content

Commit

Permalink
update dashboard menu checks
Browse files Browse the repository at this point in the history
  • Loading branch information
TareqMonwer committed Nov 4, 2024
1 parent f1be68e commit 57deb33
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
</ul>
</li>

{% if user.approval_status == 'a' and user|has_role:'academic_officer, admin' %}
<!-- Academic Tools -->
<li class="nav-item dropdown">
<a class="dropdown-toggle" href="javascript:void(0);">
Expand Down Expand Up @@ -186,7 +187,7 @@
</a>
</li>
<li>
<a class="sidebar-link"
<a class="sidebar-link"
href="{% url academic_urls.create_semester %}">
Create Semester
</a>
Expand All @@ -198,13 +199,14 @@
</a>
</li>
<li>
<a class="sidebar-link"
<a class="sidebar-link"
href="{% url academic_urls.all_semester %}">
Semesters
</a>
</li>
</ul>
</li>
{% endif %}

<!-- PUBLISHING OPTIONS -->
<li class="nav-item dropdown">
Expand Down Expand Up @@ -236,12 +238,12 @@
</ul>
</li>

{% if user|has_role:'accounts, admin' %}
{% if user.approval_status == 'a' and user|has_role:'accounts, admin' %}
<!-- PAYMENTS (RESTRICTED) -->
<li class="nav-item dropdown">
<a class="dropdown-toggle" href="javascript:void(0);">
<span class="icon-holder">
<img alt="Payments" src="{% static 'images/money.png' %}"
<img alt="Payments" src="{% static 'images/money.png' %}"
height="17">
</span>
<span class="title">Payments</span>
Expand All @@ -262,7 +264,7 @@
</li>
{% endif %}

{% if user|has_role:'admin' %}
{% if user.approval_status == 'a' and user|has_role:'admin' %}
<!-- USER OPTIONS -->
<li class="nav-item dropdown">
<a class="dropdown-toggle" href="javascript:void(0);">
Expand Down

0 comments on commit 57deb33

Please sign in to comment.