- Update call block permissions

The call_block_all permission was pulling double duty. 
- Changed the code to use call_block_all only for SHOW ALL to call block across all domains.
- Permission call_block_extension will be used instead for the purpose of showing the extension list. 
- If someone doesn't call_block_permission then their assigned extensions will be use with each call block item they add.
This commit is contained in:
FusionPBX
2024-07-18 17:13:22 -06:00
committed by GitHub
parent dcf1f9d17c
commit 8beecfbb89
4 changed files with 14 additions and 16 deletions

View File

@@ -317,7 +317,7 @@ if (!class_exists('call_block')) {
foreach ($rows as $x => $row) {
//build insert array
if (permission_exists('call_block_all')) {
if (permission_exists('call_block_extension')) {
$array['call_block'][$x]['call_block_uuid'] = uuid();
$array['call_block'][$x]['domain_uuid'] = $_SESSION['domain_uuid'];
$array['call_block'][$x]['call_block_direction'] = $this->call_block_direction;
@@ -431,4 +431,4 @@ if (!class_exists('call_block')) {
} //class
}
?>
?>