Skip to content

Commit

Permalink
changing function name of problem_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoOMaia authored Dec 24, 2024
1 parent 710f21e commit 45a25cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dojo/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
</ul>
<!-- /.nav-second-level -->
</li>
{% if None|check_problem_habilit %}
{% if None|check_problems_enabled %}
<li>
<a href="{% url 'open_problems' %}" aria-expanded="false" aria-label="Problems">
<i class="fa-solid fa-triangle-exclamation fa-fw"></i>
Expand Down Expand Up @@ -799,7 +799,7 @@ <h3 class="no-margin-top" style="padding-bottom: 5px;">
{% endif %}
</ul>
</li>
{% if None|check_problem_habilit %}
{% if None|check_problems_enabled %}
<!-- Problems Tab -->
<li role="presentation" class="dropdown{% if product_tab.title == 'Problems' %} active active-color{% endif %}">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Expand Down
2 changes: 1 addition & 1 deletion dojo/templatetags/problem_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ def count_distinct_script_ids(findings):
return len(set(finding.vuln_id_from_tool for finding in findings))

@register.filter
def check_problem_habilit(value):
def check_problems_enabled(value):
return settings.PROBLEM_MAPPINGS_JSON_URL

0 comments on commit 45a25cb

Please sign in to comment.