diff --git a/tests/clapi_export/clapi-configuration.txt b/tests/clapi_export/clapi-configuration.txt index bc2f34f71aa7e452f26864e81145dfa394102ce5..8058ddca8cae078a8d947945d0bdf2841c184e98 100644 --- a/tests/clapi_export/clapi-configuration.txt +++ b/tests/clapi_export/clapi-configuration.txt @@ -708,6 +708,7 @@ CONTACTTPL;setparam;contact_template;servicenotifopt;n CONTACTTPL;setparam;contact_template;contact_js_effects;0 CONTACTTPL;setparam;contact_template;timezone; CONTACTTPL;setparam;contact_template;reach_api;0 +CONTACTTPL;setparam;contact_template;reach_api_rt;0 CONTACTTPL;setparam;contact_template;contact_enable_notifications;2 CONTACTTPL;setparam;contact_template;contact_type_msg;txt CONTACTTPL;setparam;contact_template;contact_activate;1 @@ -781,6 +782,7 @@ CONTACT;setparam;admin;servicenotifopt;n CONTACT;setparam;admin;contact_js_effects;0 CONTACT;setparam;admin;timezone; CONTACT;setparam;admin;reach_api;0 +CONTACT;setparam;admin;reach_api_rt;0 CONTACT;setparam;admin;contact_enable_notifications;1 CONTACT;setparam;admin;contact_type_msg;txt CONTACT;setparam;admin;contact_activate;1 diff --git a/www/api/class/webService.class.php b/www/api/class/webService.class.php index 4ea72122e7f82a0c5911f19940ce141008feaf26..1488790a1bd4e8bc5d2588349ac53da8370f7b89 100644 --- a/www/api/class/webService.class.php +++ b/www/api/class/webService.class.php @@ -131,7 +131,7 @@ class CentreonWebService */ public function authorize($action, $user, $isInternal = false) { - if ($isInternal || $user->is_admin()) { + if ($isInternal || $user->admin) { return true; } diff --git a/www/class/centreon-clapi/centreonContact.class.php b/www/class/centreon-clapi/centreonContact.class.php index 9adf7eed8b7545f6b0c8708125fa391eafe27021..4e2b75f4d6d63688a2ee15d86f2fe47a8bb4e233 100644 --- a/www/class/centreon-clapi/centreonContact.class.php +++ b/www/class/centreon-clapi/centreonContact.class.php @@ -367,7 +367,7 @@ class CentreonContact extends CentreonObject } } } - if ($params[1] != 'reach_api' && $params[1] != 'default_page' && $params[1] != 'ar_id') { + if ($params[1] != 'reach_api' && $params[1] != 'reach_api_rt' && $params[1] != 'default_page' && $params[1] != 'ar_id') { $params[1] = "contact_" . $params[1]; } }