We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bbec2b commit c234692Copy full SHA for c234692
interface/web/dns/form/dns_txt.tform.php
@@ -170,7 +170,7 @@
170
)
171
);
172
173
-if($_SESSION["s"]["user"]["typ"] == 'admin') {
+if($app->auth->is_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';
0 commit comments