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}