File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 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 ' ;
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments