diff --git a/netbox/templates/core/datasource.html b/netbox/templates/core/datasource.html index c6956935879..4747f6e6505 100644 --- a/netbox/templates/core/datasource.html +++ b/netbox/templates/core/datasource.html @@ -2,6 +2,7 @@ {% load static %} {% load helpers %} {% load plugins %} +{% load perms %} {% load render_table from django_tables2 %} {% block extra_controls %} @@ -88,7 +89,18 @@
Backend
{% for name, field in object.get_backend.parameters.items %} {{ field.label }} - {{ object.parameters|get_key:name|placeholder }} + {% if field.label == "Password" and object.parameters|get_key:name %} + + {% if request.user|can_add:object or request.user|can_change:object or request.user|can_delete:object %} + {{ object.parameters|get_key:name|placeholder }} + + {% else %} + Password Hidden + {% endif %} + + {% else %} + {{ object.parameters|get_key:name|placeholder }} + {% endif %} {% empty %}