Skip to content

Commit 8c07d6c

Browse files
RomainLvrRom1-B
andauthored
Update ajax/container.php
Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
1 parent 70f48e9 commit 8c07d6c

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)