Skip to content

Commit c234692

Browse files
committed
Use is_admin() for admin check
1 parent 5bbec2b commit c234692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
)
171171
);
172172

173-
if($_SESSION["s"]["user"]["typ"] == 'admin') {
173+
if($app->auth->is_admin()) {
174174
unset($form["tabs"]['dns']['fields']['data']['validators']);
175175
$form["tabs"]['dns']['fields']['data']['validators'][0]['type'] = 'NOTEMPTY';
176176
$form["tabs"]['dns']['fields']['data']['validators'][0]['errmsg'] = 'data_error_empty';

0 commit comments

Comments
 (0)