]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Fix link which referenced the wrong account
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 18 May 2019 12:05:02 +0000 (13:05 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 18 May 2019 12:05:02 +0000 (13:05 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/people/base.html

index f8189e90c88ba6a06435e367dcd71658ebe521b3..db9ae164fe6971d4e92d40e3d63d01c33e400bbb 100644 (file)
                                                </a>
                                        {% end %}
 
-                                       {% if current_user.has_sip() %}
-                                               <a class="btn btn-light btn-sm btn-block" href="/users/{{ current_user.uid }}/calls">
+                                       {% if account.has_sip() %}
+                                               <a class="btn btn-light btn-sm btn-block" href="/users/{{ account.uid }}/calls">
                                                        <span class="fas fa-phone mr-2"></span> {{ _("Calls") }}
 
-                                                       {% if current_user.sip_channels %}
-                                                               <span class="badge badge-success ml-1">{{ len(current_user.sip_channels) }}</span>
+                                                       {% if account.sip_channels %}
+                                                               <span class="badge badge-success ml-1">{{ len(account.sip_channels) }}</span>
                                                        {% end %}
                                                </a>
                                        {% end %}