Skip to content

Commit db2ad94

Browse files
ajrbyersmauromsl
authored andcommitted
#4025 ensure Kanban only shows for editors.
1 parent bf7683d commit db2ad94

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/themes/OLH/templates/elements/right_hand_menu.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{% load roles %}
22
{% load i18n %}
3+
{% user_has_role request 'editor' as user_is_editor %}
34
<ul class="menu">
45
<li><a href="{% url 'core_dashboard' %}">{% trans "Dashboard" %}</a></li>
5-
<li><a href="{% url 'kanban' %}">{% trans "Kanban" %}</a></li>
6+
{% if user_is_editor %}
7+
<li><a href="{% url 'kanban' %}">{% trans "Kanban" %}</a></li>
8+
{% endif %}
69
{% if not journal_settings.general.disable_journal_submission %}
710
<li class="divider"></li>
811
<li><a href="{% url 'submission_start' %}">{% trans "Submit" %}</a></li>
912
{% endif %}
10-
{% user_has_role request 'editor' as user_is_editor %}
1113
{% if user_is_editor or request.user.is_staff%}
1214
<li class="divider"></li>
1315
<li><a href="{% url 'core_manager_index' %}">{% trans "Manager" %}</a></li>

src/themes/material/templates/core/nav.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@
168168

169169
<ul id="account" class="dropdown-content">
170170
<li><a class="dropdown-item" href="{% url 'core_dashboard' %}">{% trans "Dashboard" %}</a></li>
171+
{% if user_is_editor %}
171172
<li><a class="dropdown-item" href="{% url 'kanban' %}">{% trans "Kanban" %}</a></li>
173+
{% endif %}
172174
{% if not journal_settings.general.disable_journal_submission %}
173175
<li><a class="dropdown-item" href="{% url 'submission_start' %}">{% trans "Submit" %}</a></li>{% endif %}
174176
{% user_has_role request 'editor' as user_is_editor %}

0 commit comments

Comments
 (0)