From 6b199e233a22e849ba2986fdedce7cd24725ebeb Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Wed, 21 Jan 2015 07:20:28 -0500 Subject: [PATCH] allow the admin to change txt-records for dkim, dmarc and spf directly --- interface/web/dns/form/dns_txt.tform.php | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/interface/web/dns/form/dns_txt.tform.php b/interface/web/dns/form/dns_txt.tform.php index 96abd1b..a18fe14 100644 --- a/interface/web/dns/form/dns_txt.tform.php +++ b/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'; +} ?> -- Gitblit v1.9.1