diff --git a/main/webservices/api/v2.php b/main/webservices/api/v2.php index e08a19efe2..75b835d3d9 100644 --- a/main/webservices/api/v2.php +++ b/main/webservices/api/v2.php @@ -343,9 +343,8 @@ try { break; case Rest::UPDATE_USER_PAUSE_TRAINING: $allow = api_get_plugin_setting('pausetraining', 'tool_enable') === 'true'; - $allowPauseFormation = api_get_plugin_setting('pausetraining', 'allow_users_to_edit_pause_formation') === 'true'; - if (false === $allow || false === $allowPauseFormation) { + if (false === $allow) { throw new Exception(get_lang('Plugin configured')); }