From 8cef54bacfedeb5364bcab7a6528ff59302f2e93 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 25 Nov 2024 09:18:34 -0700 Subject: [PATCH] Fix the permission for call block --- app/call_block/call_block_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/call_block/call_block_edit.php b/app/call_block/call_block_edit.php index b849806da1..183177d242 100644 --- a/app/call_block/call_block_edit.php +++ b/app/call_block/call_block_edit.php @@ -175,8 +175,8 @@ } } - //if user doesn't have call block all then use the assigned extension_uuid - if (!permission_exists('call_block_all')) { + //if user doesn't have call block extension then use the assigned extension_uuid + if (!permission_exists('call_block_extension')) { $extension_uuid = $_SESSION['user']['extension'][0]['extension_uuid']; } @@ -422,7 +422,7 @@ if (permission_exists('call_block_all') || permission_exists('call_block_ring_gr echo "\n"; echo "\n"; - if (permission_exists('call_block_all')) { + if (permission_exists('call_block_extension')) { echo "\n"; echo "\n"; echo " ".$text['label-extension']."\n";