We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b26eae commit ae9ca85Copy full SHA for ae9ca85
1 file changed
interface/web/mail/mail_domain_edit.php
@@ -332,7 +332,7 @@ function onBeforeUpdate() {
332
} else {
333
//* We do not allow users to change a domain which has been created by the admin
334
$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')) {
+ if($rec['domain'] != $this->dataRecord["domain"] && !$app->tform->checkPerm($this->id, 'u')) {
336
//* Add a error message and switch back to old server
337
$app->tform->errorMessage .= $app->lng('The Domain can not be changed. Please ask your Administrator if you want to change the domain name.');
338
$this->dataRecord["domain"] = $rec['domain'];
0 commit comments