mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 02:46:30 +00:00
Use the settings class get method
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
|
||||
//$contact_users = $_POST["contact_users"];
|
||||
//$contact_groups = $_POST["contact_groups"];
|
||||
$contact_user_uuid = filter_var($_SESSION['contact']['permissions']['boolean'] ?? false, FILTER_VALIDATE_BOOLEAN) ? ($_POST["contact_user_uuid"] ?? $_SESSION["user_uuid"]) : ($contact_user_uuid = $_POST["contact_user_uuid"] ?? null);
|
||||
$contact_user_uuid = $settings->get('contact', 'permissions', false) ? ($_POST["contact_user_uuid"] ?? $_SESSION["user_uuid"]) : ($contact_user_uuid = $_POST["contact_user_uuid"] ?? null);
|
||||
$contact_group_uuid = $_POST["contact_group_uuid"] ?? null;
|
||||
|
||||
$contact_phones = $_POST["contact_phones"];
|
||||
@@ -1529,7 +1529,7 @@ echo " </div>\n";
|
||||
echo " </div>\n";
|
||||
unset($contact_note);
|
||||
|
||||
if (filter_var($_SESSION['contact']['permissions']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||
if ($settings->get('contact', 'permissions', false)) {
|
||||
if (permission_exists('contact_user_view') || permission_exists('contact_group_view')) {
|
||||
echo " <div class='form_set card'>\n";
|
||||
echo " <div class='heading'>\n";
|
||||
|
||||
Reference in New Issue
Block a user