Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(clapi): Check that user is admin to use clapi (#11631) (#11638)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjaouen authored Sep 5, 2022
1 parent 09fe9e2 commit 47092da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/api/class/centreon_clapi.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function authorize($action, $user, $isInternal = false)
{
if (
parent::authorize($action, $user, $isInternal)
|| ($user && $user->hasAccessRestApiConfiguration())
|| ($user && $user->is_admin())
) {
return true;
}
Expand Down

0 comments on commit 47092da

Please sign in to comment.