diff --git a/tests/clapi_export/clapi-configuration.txt b/tests/clapi_export/clapi-configuration.txt index c0f9518a4bc7f00cf607a5ac10062bfd18f9e543..16cb14b6f9f69bffeed17fbce586bff44a4dff6d 100644 --- a/tests/clapi_export/clapi-configuration.txt +++ b/tests/clapi_export/clapi-configuration.txt @@ -714,6 +714,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 @@ -787,6 +788,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 255e929a69307428c7014876ca541b347d98ad6b..aa10f8c34ce96ae7cf703225aaaba2b17dff7411 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 f20a9119c19d4be3e63536c895cf6e0044132ef6..818048cde0b241eef1f48c8932f1acc8cda83beb 100644 --- a/www/class/centreon-clapi/centreonContact.class.php +++ b/www/class/centreon-clapi/centreonContact.class.php @@ -364,7 +364,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]; } }