Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Game Over!
ISPConfig 3
Commits
f91c0701
Commit
f91c0701
authored
Feb 24, 2016
by
Marius Burkard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'stable-3.1'
Master Fixes #3731 See merge request !286
parents
856a3fda
f7bdb7e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
interface/web/sites/web_vhost_domain_edit.php
interface/web/sites/web_vhost_domain_edit.php
+1
-1
No files found.
interface/web/sites/web_vhost_domain_edit.php
View file @
f91c0701
...
@@ -1398,7 +1398,7 @@ class page_action extends tform_actions {
...
@@ -1398,7 +1398,7 @@ class page_action extends tform_actions {
}
else
{
}
else
{
//* We do not allow users to change a domain which has been created by the admin
//* We do not allow users to change a domain which has been created by the admin
$rec
=
$app
->
db
->
queryOneRecord
(
"SELECT sys_perm_group, domain, ip_address, ipv6_address from web_domain WHERE domain_id = ?"
,
$this
->
id
);
$rec
=
$app
->
db
->
queryOneRecord
(
"SELECT sys_perm_group, domain, ip_address, ipv6_address from web_domain WHERE domain_id = ?"
,
$this
->
id
);
if
(
isset
(
$this
->
dataRecord
[
"domain"
])
&&
$rec
[
'domain'
]
!=
$this
->
dataRecord
[
"domain"
]
&&
$app
->
tform
->
checkPerm
(
$this
->
id
,
'u'
))
{
if
(
isset
(
$this
->
dataRecord
[
"domain"
])
&&
$rec
[
'domain'
]
!=
$this
->
dataRecord
[
"domain"
]
&&
!
$app
->
tform
->
checkPerm
(
$this
->
id
,
'u'
))
{
//* Add a error message and switch back to old server
//* Add a error message and switch back to old server
$app
->
tform
->
errorMessage
.
=
$app
->
lng
(
'The Domain can not be changed. Please ask your Administrator if you want to change the domain name.'
);
$app
->
tform
->
errorMessage
.
=
$app
->
lng
(
'The Domain can not be changed. Please ask your Administrator if you want to change the domain name.'
);
$this
->
dataRecord
[
"domain"
]
=
$rec
[
'domain'
];
$this
->
dataRecord
[
"domain"
]
=
$rec
[
'domain'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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