diff --git a/public/main/admin/update_schema.php b/public/main/admin/update_schema.php index feabecb45a..30d4ddbd0c 100644 --- a/public/main/admin/update_schema.php +++ b/public/main/admin/update_schema.php @@ -8,10 +8,6 @@ require_once __DIR__.'/../inc/global.inc.php'; // Access restrictions api_protect_admin_script(true); -if ('false' === api_get_setting('platform.sync_db_with_schema')) { - api_not_allowed(true); -} - $em = Database::getManager(); $connection = Database::getManager()->getConnection(); $sm = $connection->createSchemaManager(); diff --git a/public/main/admin/user_add.php b/public/main/admin/user_add.php index 6733f5eeda..54d359bb84 100644 --- a/public/main/admin/user_add.php +++ b/public/main/admin/user_add.php @@ -296,17 +296,14 @@ $returnParams = $extraField->addElements( true ); -$allowEmailTemplate = ('true' === api_get_setting('mail.mail_template_system')); -if ($allowEmailTemplate) { - $form->addEmailTemplate( - [ - 'subject_registration_platform.tpl', - 'content_registration_platform.tpl', - 'new_user_first_email_confirmation.tpl', - 'new_user_second_email_confirmation.tpl', - ] - ); -} +$form->addEmailTemplate( + [ + 'subject_registration_platform.tpl', + 'content_registration_platform.tpl', + 'new_user_first_email_confirmation.tpl', + 'new_user_second_email_confirmation.tpl', + ] +); $jquery_ready_content = $returnParams['jquery_ready_content']; diff --git a/public/main/admin/user_edit.php b/public/main/admin/user_edit.php index 34eb735251..a76d666a77 100644 --- a/public/main/admin/user_edit.php +++ b/public/main/admin/user_edit.php @@ -346,10 +346,7 @@ $returnParams = $extraField->addElements( ); $jqueryReadyContent = $returnParams['jquery_ready_content']; -$allowEmailTemplate = ('true' === api_get_setting('mail.mail_template_system')); -if ($allowEmailTemplate) { - $form->addEmailTemplate(['user_edit_content.tpl']); -} +$form->addEmailTemplate(['user_edit_content.tpl']); // the $jqueryReadyContent variable collects all functions that will be load in the $htmlHeadXtra[] = '