Skip to content

Commit

Permalink
Add missing permission checks for caserun status options
Browse files Browse the repository at this point in the history
refs #716
  • Loading branch information
ivo0126 authored and atodorov committed May 18, 2019
1 parent 7935f3c commit 8eb3737
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tcms/templates/run/get_case_runs.html
Expand Up @@ -33,11 +33,13 @@
</div>
<div class="btnBlueCaserun">
<span>{% trans "Status" %}</span>
<ul class="statusOptions">
{% for tcrs in test_status %}
<li><a value="{{ tcrs.pk }}" href="#" class="{{ tcrs|lower }}Blue9">{{ tcrs }}</a></li>
{% endfor %}
</ul>
{% if perms.testruns.change_testexecution %}
<ul class="statusOptions">
{% for tcrs in test_status %}
<li><a value="{{ tcrs.pk }}" href="#" class="{{ tcrs|lower }}Blue9">{{ tcrs }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
<div class="btnBlueCaserun">
<span>{% trans "Bugs" %}</span>
Expand Down

0 comments on commit 8eb3737

Please sign in to comment.