Skip to content

Commit

Permalink
Hide sensitive_parameters from datasource view even for high privil…
Browse files Browse the repository at this point in the history
…ege users
  • Loading branch information
mskalecki authored and jeremystretch committed Nov 20, 2024
1 parent e36f23e commit eb645ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/templates/core/datasource.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h2 class="card-header">{% trans "Backend" %}</h2>
{% for name, field in backend.parameters.items %}
<tr>
<th scope="row">{{ field.label }}</th>
{% if name in backend.sensitive_parameters and not perms.core.change_datasource %}
{% if name in backend.sensitive_parameters %}
<td>********</td>
{% else %}
<td>{{ object.parameters|get_key:name|placeholder }}</td>
Expand Down

0 comments on commit eb645ee

Please sign in to comment.