Skip to content

Commit f91c070

Browse files
author
Marius Burkard
committed
Merge branch 'master' into 'stable-3.1'
Master Fixes #3731 See merge request !286
2 parents 856a3fd + f7bdb7e commit f91c070

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)