TODO security broken with Multicompany

This commit is contained in:
Regis Houssin 2019-01-16 11:07:58 +01:00
parent f51b4288da
commit 24128ac28d

View File

@ -85,7 +85,7 @@ if ($user->societe_id > 0) $socid = $user->societe_id;
$feature2='user';
if ($user->id == $id) { $feature2=''; $canreaduser=1; } // A user can always read its own card
if (! $canreaduser) {
if (! $canreaduser) { // TODO security broken with Multicompany
$result = restrictedArea($user, 'user', $id, 'user&user', $feature2);
}