0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

Switch config item for broadcast.

The new config item is now `sendmail_all_admins`
This commit is contained in:
Jan-Frederik Rieckers 2017-02-12 20:39:37 +01:00
parent eb871de916
commit 3c360f646f
No known key found for this signature in database
GPG Key ID: 664B03955EA04DEF
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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