Skip to content

Commit f7bdb7e

Browse files
author
Florian Schaal
committed
Website domain can not be changed by client (Issue #3731)
1 parent 8a4a057 commit f7bdb7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/web_vhost_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ function onBeforeUpdate () {
13981398
} else {
13991399
//* We do not allow users to change a domain which has been created by the admin
14001400
$rec = $app->db->queryOneRecord("SELECT sys_perm_group, domain, ip_address, ipv6_address from web_domain WHERE domain_id = ?", $this->id);
1401-
if(isset($this->dataRecord["domain"]) && $rec['domain'] != $this->dataRecord["domain"] && $app->tform->checkPerm($this->id, 'u')) {
1401+
if(isset($this->dataRecord["domain"]) && $rec['domain'] != $this->dataRecord["domain"] && !$app->tform->checkPerm($this->id, 'u')) {
14021402
//* Add a error message and switch back to old server
14031403
$app->tform->errorMessage .= $app->lng('The Domain can not be changed. Please ask your Administrator if you want to change the domain name.');
14041404
$this->dataRecord["domain"] = $rec['domain'];

0 commit comments

Comments
 (0)