From: Michael Tremer Date: Mon, 28 Oct 2019 18:34:35 +0000 (+0000) Subject: people: Do not show calls button for regular users X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2460c6f1aa7c692b9eb167303370ac5fc785df0;p=ipfire.org.git people: Do not show calls button for regular users This does not work anyways. Signed-off-by: Michael Tremer --- 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") }}