diff --git a/front/container.form.php b/front/container.form.php index 28e8c37a..8a80410a 100644 --- a/front/container.form.php +++ b/front/container.form.php @@ -61,9 +61,11 @@ Html::back(); } else { - $right = PluginFieldsProfile::getRightOnContainer($_SESSION['glpiactiveprofile']['id'], $_GET['id']); - if ($right < READ) { - Html::displayRightError("User is missing the " . READ . " ('read') right for container"); + if ((int) $_GET['id'] > 0) { + $right = PluginFieldsProfile::getRightOnContainer($_SESSION['glpiactiveprofile']['id'], $_GET['id']); + if ($right < READ) { + Html::displayRightError("User is missing the " . READ . " ('read') right for container"); + } } Html::header(