diff --git a/htdocs/contact/note.php b/htdocs/contact/note.php index 73b0f513db97e75b81b931dab90b47e71dc05fec..173a1018547d23d59fb003df92f84b7a9088d337 100644 --- a/htdocs/contact/note.php +++ b/htdocs/contact/note.php @@ -36,7 +36,7 @@ $langs->load("companies"); // Security check $id = GETPOST('id','int'); if ($user->societe_id) $id=$user->societe_id; -$result = restrictedArea($user, 'societe', $id, '&societe'); +$result = restrictedArea($user, 'contact', $id, 'socpeople&societe'); $object = new Contact($db); if ($id > 0) $object->fetch($id);