Skip to content

Commit 08c493a

Browse files
author
Till Brehm
committed
Make update_acl field visible to admins only in dns SOA.
1 parent 9c51ab5 commit 08c493a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@
319319
)
320320
);
321321

322-
322+
// show update acl to admins only.
323+
if(!$app->auth->is_admin()) unset($form["tabs"]['dns_soa']['fields']['update_acl']);
323324

324325
?>

interface/web/dns/templates/dns_soa_edit.htm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,11 @@ <h1><tmpl_var name="list_head_txt"></h1>
120120
<div class="form-group">
121121
<label for="also_notify" class="col-sm-3 control-label">{tmpl_var name='also_notify_txt'}</label>
122122
<div class="col-sm-9"><input type="text" name="also_notify" id="also_notify" value="{tmpl_var name='also_notify'}" class="form-control" /></div></div>
123-
<div class="form-group">
123+
<tmpl_if name="is_admin">
124+
<div class="form-group">
124125
<label for="update_acl" class="col-sm-3 control-label">{tmpl_var name='update_acl_txt'}</label>
125126
<div class="col-sm-9"><input type="text" name="update_acl" id="update_acl" value="{tmpl_var name='update_acl'}" class="form-control" /></div></div>
126-
127+
</tmpl_if>
127128
<div class="form-group">
128129
<label class="col-sm-3 control-label">{tmpl_var name='active_txt'}</label>
129130
<div class="col-sm-9">

0 commit comments

Comments
 (0)