Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Judah - MW
ISPConfig 3
Commits
c2346925
Unverified
Commit
c2346925
authored
Jun 15, 2022
by
Helmo
Browse files
Use is_admin() for admin check
parent
5bbec2b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/dns/form/dns_txt.tform.php
View file @
c2346925
...
@@ -170,7 +170,7 @@ $form["tabs"]['dns'] = array (
...
@@ -170,7 +170,7 @@ $form["tabs"]['dns'] = array (
)
)
);
);
if
(
$
_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'
admin
'
)
{
if
(
$
app
->
auth
->
is_
admin
()
)
{
unset
(
$form
[
"tabs"
][
'dns'
][
'fields'
][
'data'
][
'validators'
]);
unset
(
$form
[
"tabs"
][
'dns'
][
'fields'
][
'data'
][
'validators'
]);
$form
[
"tabs"
][
'dns'
][
'fields'
][
'data'
][
'validators'
][
0
][
'type'
]
=
'NOTEMPTY'
;
$form
[
"tabs"
][
'dns'
][
'fields'
][
'data'
][
'validators'
][
0
][
'type'
]
=
'NOTEMPTY'
;
$form
[
"tabs"
][
'dns'
][
'fields'
][
'data'
][
'validators'
][
0
][
'errmsg'
]
=
'data_error_empty'
;
$form
[
"tabs"
][
'dns'
][
'fields'
][
'data'
][
'validators'
][
0
][
'errmsg'
]
=
'data_error_empty'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment