From c59f58b4ff42686c054afe5c8278e734b4ded257 Mon Sep 17 00:00:00 2001 From: Andy Binder Date: Wed, 29 Nov 2023 21:14:22 +0100 Subject: [PATCH] If there are contact permissions enabled, assign the current user. (#6837) --- app/contacts/contact_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index 7a6cbc77aa..3266c52394 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -89,7 +89,7 @@ //$contact_users = $_POST["contact_users"]; //$contact_groups = $_POST["contact_groups"]; - $contact_user_uuid = $_POST["contact_user_uuid"] ?? null; + $contact_user_uuid = ($_SESSION['contact']['permissions']['boolean'] == "true") ? ($_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"];