We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42cdcaa commit ccc3812Copy full SHA for ccc3812
front/container.form.php
@@ -61,9 +61,11 @@
61
Html::back();
62
} else {
63
64
- $right = PluginFieldsProfile::getRightOnContainer($_SESSION['glpiactiveprofile']['id'], $_GET['id']);
65
- if ($right < READ) {
66
- 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) {
67
+ Html::displayRightError("User is missing the " . READ . " ('read') right for container");
68
+ }
69
}
70
71
Html::header(
0 commit comments