Skip to content

Commit 6b199e2

Browse files
author
Florian Schaal
committed
allow the admin to change txt-records for dkim, dmarc and spf directly
1 parent 91a3943 commit 6b199e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

interface/web/dns/form/dns_txt.tform.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@
170170
)
171171
);
172172

173-
174-
173+
if($_SESSION["s"]["user"]["typ"] == 'admin') {
174+
unset($form["tabs"]['dns']['fields']['data']['validators']);
175+
$form["tabs"]['dns']['fields']['data']['validators'][0]['type'] = 'NOTEMPTY';
176+
$form["tabs"]['dns']['fields']['data']['validators'][0]['errmsg'] = 'data_error_empty';
177+
}
175178
?>

0 commit comments

Comments
 (0)