contact/note.php always restricted for external users

Case of external user :
1- restrictedArea always block the access,
2- if this weren't the case, the following code is obviously wrong : fetching a Contact from a Societe id...
This commit is contained in:
bomuux 2021-11-22 16:17:49 +01:00 committed by GitHub
parent 522c66915d
commit a3315e8e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,9 +36,9 @@ $langs->load("companies");
// Security check
$id = GETPOST('id', 'int');
if ($user->socid) {
$id = $user->socid;
}
//if ($user->socid) {
// $id = $user->socid;
//}
$result = restrictedArea($user, 'contact', $id, 'socpeople&societe');
$object = new Contact($db);