Florian Schaal
2015-01-21 6b199e233a22e849ba2986fdedce7cd24725ebeb
allow the admin to change txt-records for dkim, dmarc and spf directly
1 files modified
7 ■■■■ changed files
interface/web/dns/form/dns_txt.tform.php 7 ●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_txt.tform.php
@@ -170,6 +170,9 @@
    )
);
if($_SESSION["s"]["user"]["typ"] == 'admin') {
    unset($form["tabs"]['dns']['fields']['data']['validators']);
    $form["tabs"]['dns']['fields']['data']['validators'][0]['type'] = 'NOTEMPTY';
    $form["tabs"]['dns']['fields']['data']['validators'][0]['errmsg'] = 'data_error_empty';
}
?>