Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Webslice
ISPConfig 3
Commits
eebf5bbf
Commit
eebf5bbf
authored
10 years ago
by
Patrick Anders
Browse files
Options
Downloads
Patches
Plain Diff
fix FS#3659
parent
bde52436
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interface/web/dns/dns_soa_edit.php
+5
-1
5 additions, 1 deletion
interface/web/dns/dns_soa_edit.php
with
5 additions
and
1 deletion
interface/web/dns/dns_soa_edit.php
+
5
−
1
View file @
eebf5bbf
...
...
@@ -283,7 +283,11 @@ function onBeforeUpdate () {
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
!=
'admin'
&&
!
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
]))
{
//* We do not allow users to change a domain which has been created by the admin
$rec
=
$app
->
db
->
queryOneRecord
(
"SELECT origin from dns_soa WHERE id = "
.
$this
->
id
);
if
(
isset
(
$this
->
dataRecord
[
"origin"
])
&&
$rec
[
'origin'
]
!=
$this
->
dataRecord
[
"origin"
]
&&
$app
->
tform
->
checkPerm
(
$this
->
id
,
'u'
))
{
$drOrigin
=
(
isset
(
$this
->
dataRecord
[
'origin'
]))
?
$app
->
functions
->
idn_encode
(
$this
->
dataRecord
[
'origin'
])
:
false
;
if
(
$rec
[
'origin'
]
!==
$drOrigin
&&
$app
->
tform
->
checkPerm
(
$this
->
id
,
'u'
))
{
//* Add a error message and switch back to old server
$app
->
tform
->
errorMessage
.
=
$app
->
lng
(
'The Zone (soa) can not be changed. Please ask your Administrator if you want to change the Zone name.'
);
$this
->
dataRecord
[
"origin"
]
=
$rec
[
'origin'
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment