From 0616c67590d5b7d282c69a1a552467cde44d2946 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 25 Jun 2025 14:30:18 -0600 Subject: [PATCH] Update active_calls.php --- app/active_calls/active_calls.php | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/app/active_calls/active_calls.php b/app/active_calls/active_calls.php index b251039504..7e79964536 100644 --- a/app/active_calls/active_calls.php +++ b/app/active_calls/active_calls.php @@ -142,22 +142,20 @@ if (!$settings->get('active_calls', 'remove_completed_calls', true)) { ]); } -if (permission_exists('call_active_hangup')) { - if (permission_exists('call_active_hangup')) { - // Hangup selected calls - echo button::create([ - 'id' => 'btn_hangup', - 'type' => 'button', - 'label' => $text['label-hangup'], - 'icon' => 'phone-slash', - 'onclick' => "if (confirm('" . $text['confirm-hangup'] . "')) { " - . "hangup_selected();" - . "} else { " - . "this.blur(); " - . "return false; " - . "}", - ]) . "\n"; - } +if (permission_exists('call_active_hangup_disabled')) { + // Hangup selected calls + echo button::create([ + 'id' => 'btn_hangup', + 'type' => 'button', + 'label' => $text['label-hangup'], + 'icon' => 'phone-slash', + 'onclick' => "if (confirm('" . $text['confirm-hangup'] . "')) { " + . "hangup_selected();" + . "} else { " + . "this.blur(); " + . "return false; " + . "}", + ]) . "\n"; } echo " \n"; echo "
\n";