Skip to content

Commit ae9ca85

Browse files
author
Till Brehm
committed
Fixed: FS#3982 - Cannot modify mail domain when owner
1 parent 7b26eae commit ae9ca85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/mail/mail_domain_edit.php

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

0 commit comments

Comments
 (0)