From 3c360f646fabae47cc1f02033fcfa74c8217503d Mon Sep 17 00:00:00 2001 From: Jan-Frederik Rieckers Date: Sun, 12 Feb 2017 20:39:37 +0100 Subject: [PATCH] Switch config item for broadcast. The new config item is now `sendmail_all_admins` --- broadcast-message.php | 6 +++--- config.inc.php | 4 ++-- templates/menu.tpl | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/broadcast-message.php b/broadcast-message.php index 43639c8a..15685e03 100644 --- a/broadcast-message.php +++ b/broadcast-message.php @@ -27,10 +27,10 @@ require_once('common.php'); -if ($CONF['sendmail_only_global_admin'] == 'YES' ) { - authentication_require_role('global-admin'); -} else { +if (Config::bool('sendmail_all_admins'])) { authentication_require_role('admin'); +} else { + authentication_require_role('global-admin'); } if ($CONF['sendmail'] != 'YES') { diff --git a/config.inc.php b/config.inc.php index 359dd302..0867c896 100644 --- a/config.inc.php +++ b/config.inc.php @@ -396,9 +396,9 @@ $CONF['backup'] = 'NO'; // Send Mail // If you don't want sendmail tab set this to 'NO'; $CONF['sendmail'] = 'YES'; -// Set this to NO if you want to allow non-super-admins to +// Set this to YES if you want to allow non-super-admins to // send mails to their users -$CONF['sendmail_only_global_admin'] = 'YES'; +$CONF['sendmail_all_admins'] = 'NO'; // Logging // If you don't want logging set this to 'NO'; diff --git a/templates/menu.tpl b/templates/menu.tpl index 4cc754b7..bfc2d85b 100644 --- a/templates/menu.tpl +++ b/templates/menu.tpl @@ -62,7 +62,7 @@
  • {$PALANG.pMenu_sendmail}