Skip to content

Commit

Permalink
Hide the config links from those without permission
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed Apr 30, 2014
1 parent ddfbe47 commit 78f01b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/templates/server/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
{% block nav %}
{% if user.userprofile.level == 'GA' %}
<li><a href="{% url 'new_business_unit' %}">New Business Unit</a></li>
{% endif %}
{% if user.userprofile.level == 'GA' or user.userprofile.level == 'RW' %}
{% if config_installed %}
<li><a href="{% url 'config_index' %}">Configure Machines</a></li>
{% endif %}
Expand Down
2 changes: 2 additions & 0 deletions server/templates/server/machine_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
{% endblock %}

{% block nav %}
{% if user.userprofile.level == 'GA' or user.userprofile.level == 'RW' %}
{% if config_installed %}
<li><a href="{% url 'config_configure_machine' machine.id %}">Configure Machine</a></li>
{% endif %}
{% endif %}
{% endblock %}
{% block content %}
<div class="row">
Expand Down

0 comments on commit 78f01b4

Please sign in to comment.