diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index 506444b169..c8beb88f4d 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -634,15 +634,20 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //private by default on contact add $contact_shared = 'false'; } + //disable shared change if user (superadmin) is accessing a foreign domain + $contact_shared_disabled = ($_SESSION['groups'][0]['domain_uuid'] != $_SESSION['domain_uuid']) ? "disabled='disabled'" : null; echo "\n"; echo "\n"; echo " ".$text['label-shared'].":\n"; echo "\n"; echo "\n"; - echo " \n"; echo " \n"; echo " \n"; echo " \n"; + if ($contact_shared_disabled != '') { + echo " "; + } echo "
\n"; echo $text['description-shared']."\n"; echo "\n";