Skip to content

Commit 1af0f83

Browse files
author
Florian Schaal
committed
show error-message when a client / reseller change the ip for a domain that was created by the admin
1 parent db7e71b commit 1af0f83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interface/web/sites/web_vhost_domain_edit.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,9 +1460,13 @@ function onBeforeUpdate () {
14601460
$this->dataRecord["domain"] = $rec['domain'];
14611461
}
14621462
if(isset($this->dataRecord["ip_address"]) && $rec['ip_address'] != $this->dataRecord["ip_address"] && $rec['sys_perm_group'] != 'riud') {
1463+
//* Add a error message and switch back to old server
1464+
$app->tform->errorMessage .= $app->lng('The IP can not be changed. Please ask your Administrator if you want to change the IPv4-Address.');
14631465
$this->dataRecord["ip_address"] = $rec['ip_address'];
14641466
}
14651467
if(isset($this->dataRecord["ipv6_address"]) && $rec['ipv6_address'] != $this->dataRecord["ipv6_address"] && $rec['sys_perm_group'] != 'riud') {
1468+
//* Add a error message and switch back to old server
1469+
$app->tform->errorMessage .= $app->lng('The IP can not be changed. Please ask your Administrator if you want to change the IPv6-Address.');
14661470
$this->dataRecord["ipv6_address"] = $rec['ipv6_address'];
14671471
}
14681472
unset($rec);

0 commit comments

Comments
 (0)