From e2460c6f1aa7c692b9eb167303370ac5fc785df0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 28 Oct 2019 18:34:35 +0000 Subject: [PATCH] people: Do not show calls button for regular users This does not work anyways. Signed-off-by: Michael Tremer --- src/templates/people/base.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/templates/people/base.html b/src/templates/people/base.html index d92de2d6..510d2b13 100644 --- a/src/templates/people/base.html +++ b/src/templates/people/base.html @@ -29,17 +29,17 @@ {% end %} - {% if account.has_sip() %} - - {{ _("Calls") }} + {% if account.can_be_managed_by(current_user) %} + {% if account.has_sip() %} + + {{ _("Calls") }} - {% if account.sip_channels %} - {{ len(account.sip_channels) }} - {% end %} - - {% end %} + {% if account.sip_channels %} + {{ len(account.sip_channels) }} + {% end %} + + {% end %} - {% if account.can_be_managed_by(current_user) %} {{ _("Edit") }} -- 2.47.3