Skip to content

Commit a4e18f4

Browse files
RomainLvrRom1-B
andcommitted
Update ajax/container.php
Co-authored-by: Romain B. <[email protected]>
1 parent 03b265c commit a4e18f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ajax/container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
$right = PluginFieldsProfile::getRightOnContainer($_SESSION['glpiactiveprofile']['id'], $_GET['id']);
3838
if ($right < READ) {
39-
throw new HttpException(403, 'Forbidden');
39+
throw new \Glpi\Exception\Http\AccessDeniedHttpException();
4040
}
4141

4242
$containers_id = $_GET['id'];

0 commit comments

Comments
 (0)