mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #5066: Update view_reportresult to view_report permission
This commit is contained in:
@ -276,7 +276,7 @@
|
||||
<div class="panel-heading">
|
||||
<strong>Reports</strong>
|
||||
</div>
|
||||
{% if report_results and perms.extras.view_reportresult %}
|
||||
{% if report_results and perms.extras.view_report %}
|
||||
<table class="table table-hover panel-body">
|
||||
{% for result in report_results %}
|
||||
<tr>
|
||||
@ -285,7 +285,7 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% elif perms.extras.view_reportresult %}
|
||||
{% elif perms.extras.view_report %}
|
||||
<div class="panel-body text-muted">
|
||||
None found
|
||||
</div>
|
||||
|
@ -518,7 +518,7 @@
|
||||
<li{% if not perms.extras.view_script %} class="disabled"{% endif %}>
|
||||
<a href="{% url 'extras:script_list' %}">Scripts</a>
|
||||
</li>
|
||||
<li{% if not perms.extras.view_reportresult %} class="disabled"{% endif %}>
|
||||
<li{% if not perms.extras.view_report %} class="disabled"{% endif %}>
|
||||
<a href="{% url 'extras:report_list' %}">Reports</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user