Global: restrict access to the page when option 'allow_email_editor' is not activated -refs BT#21288

pull/5018/head
NicoDucou 2 years ago
parent 073dca6320
commit 852bd80e9d
  1. 2
      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);
}

Loading…
Cancel
Save