mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 02:46:30 +00:00
- 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:
@@ -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
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user