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:
parent
522c66915d
commit
a3315e8e16
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user