Switch config item for broadcast.

The new config item is now `sendmail_all_admins`
pull/24/head
Jan-Frederik Rieckers 8 years ago
parent eb871de916
commit 3c360f646f
No known key found for this signature in database
GPG Key ID: 664B03955EA04DEF

@ -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') {

@ -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';

@ -62,7 +62,7 @@
<li><a target="_top" href="{#url_sendmail#}">{$PALANG.pMenu_sendmail}</a>
<ul>
<li><a target="_top" href="{#url_sendmail#}">{$PALANG.pMenu_sendmail}</a></li>
{if $authentication_has_role.global_admin || $CONF.sendmail_only_global_admin!== 'YES'}
{if $authentication_has_role.global_admin || $CONF.sendmail_all_admins === 'YES'}
<li><a target="_top" href="{#url_broadcast_message#}">{$PALANG.pAdminMenu_broadcast_message}</a></li>
{/if}
</ul>

Loading…
Cancel
Save