]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Do not show SIP status to everybody
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 29 Nov 2019 15:18:15 +0000 (15:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 29 Nov 2019 15:18:15 +0000 (15:18 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/people/base.html

index 510d2b134f503dd30ab20e0c24a3422e4cadfa2b..aeda5058066e15903df5e4dcc0fe60542aac0467 100644 (file)
@@ -12,7 +12,7 @@
                                        <a class="text-white" href="/users/{{ account.uid }}">{{ account }}</a>
                                </h3>
 
-                               {% if account.has_sip() %}
+                               {% if current_user.is_staff() and account.has_sip() %}
                                        <h5>
                                                {{ account.sip_id }}