diff --git a/htdocs/document.php b/htdocs/document.php index 5758a13a0b4..6c8c7c59c7f 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -440,6 +440,7 @@ if ($modulepart) } } + // Basic protection (against external users only) if ($user->societe_id > 0) {