Merge remote-tracking branch 'origin/3.6' into 3.7

This commit is contained in:
Laurent Destailleur
2015-02-20 23:47:09 +01:00
3 changed files with 4 additions and 1 deletions

View File

@@ -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);