From 852bd80e9de1c637b45ba7b406c848d5f68f76d4 Mon Sep 17 00:00:00 2001 From: NicoDucou Date: Tue, 12 Dec 2023 19:21:01 +0100 Subject: [PATCH] Global: restrict access to the page when option 'allow_email_editor' is not activated -refs BT#21288 --- main/inc/email_editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/email_editor.php b/main/inc/email_editor.php index fdf5458fa7..b4cd33ca3c 100755 --- a/main/inc/email_editor.php +++ b/main/inc/email_editor.php @@ -14,7 +14,7 @@ use ChamiloSession as Session; */ require_once __DIR__.'/../inc/global.inc.php'; -if (empty(api_get_user_id())) { +if (empty(api_get_user_id()) || ("true" !== api_get_setting('allow_email_editor'))) { api_not_allowed(true); }