]> git.ipfire.org Git - ipfire.org.git/commitdiff
talk: Hide SIP password if that is empty
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Oct 2015 16:06:53 +0000 (18:06 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Oct 2015 16:06:53 +0000 (18:06 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
templates/talk/phonebook-contact.html

index 6d203f0f9cdbc4196eef19a39902813b15b993f9..7c109f14e99b182418bb10053831b80f4fb17b52 100644 (file)
@@ -39,7 +39,7 @@
                                                        </small>
                                                </li>
 
-                                               {% if current_user == account or current_user.is_admin() %}
+                                               {% if account.sip_password and (current_user == account or current_user.is_admin()) %}
                                                        <li>
                                                                <small>
                                                                        {{ _("Password") }}: {{ account.sip_password }}