Skip to content

Commit f02fd39

Browse files
committed
Only show the btn_edit_as_txt_record_txt button to admins
1 parent c234692 commit f02fd39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interface/web/dns/templates/dns_spf_edit.htm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353

5454
<div class="clear"><div class="right">
5555
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="dns/dns_spf_edit.php">{tmpl_var name='btn_save_txt'}</button>
56+
<tmpl_if name="is_admin">
5657
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_edit_as_txt_record_txt'}" data-load-content="dns/dns_txt_edit.php?id={tmpl_var name='id'}&zone={tmpl_var name='zone'}&edit_raw=1">{tmpl_var name='btn_edit_as_txt_record_txt'}</button>
58+
</tmpl_if>
5759
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="dns/dns_soa_edit.php?id={tmpl_var name='zone'}&next_tab=dns_records">{tmpl_var name='btn_cancel_txt'}</button>
5860
</div></div>
5961

0 commit comments

Comments
 (0)