Skip to content
Snippets Groups Projects
Commit d9ab0583 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #2370 from braito4/patch-1

[FIX #1833] Permissions in contact/note.php wrong
parents 29c39d61 ca647634
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment