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:
parent
eb871de916
commit
3c360f646f
@ -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…
Reference in New Issue
Block a user