Skip to content
Snippets Groups Projects
Commit ca647634 authored by braito4's avatar braito4
Browse files

Update note.php

Error in the security check
parent 6189db67
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ $langs->load("companies"); ...@@ -36,7 +36,7 @@ $langs->load("companies");
// Security check // Security check
$id = GETPOST('id','int'); $id = GETPOST('id','int');
if ($user->societe_id) $id=$user->societe_id; 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); $object = new Contact($db);
if ($id > 0) $object->fetch($id); 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