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) (#11640)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjaouen authored Sep 5, 2022
1 parent 3a14208 commit d86b34b
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 @@ -230,7 +230,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 d86b34b

Please sign in to comment.