Skip to content

Commit

Permalink
[orga] Don't show Organisers link to reviewers
Browse files Browse the repository at this point in the history
… as they are not permitted to view it. As reported in
#433
  • Loading branch information
rixx committed Feb 24, 2019
1 parent d3fbff6 commit e384da5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pretalx/orga/templates/orga/base.html
Expand Up @@ -142,6 +142,7 @@
{% endif %}
<div id="page-wrapper">
<aside class="nav flex-column sidebar">
{% has_perm 'orga.view_organisers' request.user request as can_see_organisers %}
{% if request.event %}
{% has_perm 'orga.view_orga_area' request.user request.event as can_see_orga_area %}
{% has_perm 'orga.change_submissions' request.user request.event as can_see_orga_exclusive %}
Expand Down Expand Up @@ -327,10 +328,12 @@
<i class="fa fa-calendar-o"></i>
<span>{% trans "Events" %}</span>
</a>
{% if can_see_organisers %}
<a class="nav-link {% if "/orga/organiser/" in request.path %} active{% endif %}" href="/orga/organiser/">
<i class="fa fa-users"></i>
<span>{% trans "Organisers" %}</span>
</a>
{% endif %}
{% for nav_element in nav_global %}
<a class="nav-link {% if nav_element.active %} active{% endif %}" href="{{ nav_element.url }}">
{% if nav_element.icon and "." in nav_element.icon %}
Expand Down

0 comments on commit e384da5

Please sign in to comment.