Add contact permissions to default settings. Default false (#6314)

* Change contact_permissions to contact.permissions

* Update provision.php

* Remove provision contact permissions for a broader setting.

* Add contact permissions to default settings with a default value of false.

* Update app_config.php
This commit is contained in:
FusionPBX
2022-02-18 13:53:32 -07:00
committed by GitHub
parent 2be3ad4470
commit 39bd197437
3 changed files with 8 additions and 9 deletions
@@ -893,7 +893,7 @@ include "root.php";
//get the list of contact directly assigned to the user
if (is_uuid($domain_uuid)) {
if ($_SESSION['provision']['contact_permissions']['boolean'] == "true") {
if ($_SESSION['contact']['permissions']['boolean'] == "true") {
//get the contacts assigned to the groups and add to the contacts array
if (is_uuid($device_user_uuid) && $_SESSION['provision']['contact_groups']['boolean'] == "true") {
$this->contact_append($contacts, $line, $domain_uuid, $device_user_uuid, 'groups');