diff --git a/index.php b/index.php index 5fc059b..0f61029 100644 --- a/index.php +++ b/index.php @@ -39,7 +39,7 @@ ****************************************************/ //CHECK ACCESS // Protection if external user -if ($user->societe_id > 0 || !$user->rights->ecommerceng->read) +if ((isset($user->societe_id) && $user->societe_id > 0) || empty($user->rights->ecommerceng->read)) { accessforbidden(); }