DNS Diagnostics - Allow for domain administrator
Signed-off-by: Kristián Feldsam <feldsam@gmail.com>
This commit is contained in:
parent
9fa20e229c
commit
9f258df883
@ -7,7 +7,7 @@ define('state_missing', '<span class="glyphicon glyphicon-remove text-danger"></
|
||||
define('state_nomatch', "?");
|
||||
define('state_optional', " <sup>2</sup>");
|
||||
|
||||
if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admin") {
|
||||
if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "admin"|| $_SESSION['mailcow_cc_role'] == "domainadmin")) {
|
||||
|
||||
$domains = mailbox('get', 'domains');
|
||||
foreach(mailbox('get', 'domains') as $dn) {
|
||||
@ -77,6 +77,8 @@ $spf_link = '<a href="http://www.openspf.org/SPF_Record_Syntax" target="_blank">
|
||||
$dmarc_link = '<a href="http://www.kitterman.com/dmarc/assistant.html" target="_blank">DMARC Assistant</a>';
|
||||
|
||||
$records = array();
|
||||
if($_SESSION['mailcow_cc_role'] == "admin")
|
||||
{
|
||||
$records[] = array(
|
||||
$mailcow_hostname,
|
||||
'A',
|
||||
@ -144,6 +146,7 @@ $records[] = array(
|
||||
'TLSA',
|
||||
generate_tlsa_digest($autodiscover_config['sieve']['server'], $autodiscover_config['sieve']['port'], 1)
|
||||
);
|
||||
}
|
||||
$records[] = array(
|
||||
$domain,
|
||||
'MX',
|
||||
|
Loading…
Reference in New Issue
Block a user