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)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjaouen authored Aug 29, 2022
1 parent f8e1b56 commit b877310
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 b877310

Please sign in to comment.