Skip to content
Snippets Groups Projects
Commit ae9ca85a authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: FS#3982 - Cannot modify mail domain when owner

parent 7b26eae1
No related branches found
No related tags found
No related merge requests found
...@@ -332,7 +332,7 @@ class page_action extends tform_actions { ...@@ -332,7 +332,7 @@ class page_action extends tform_actions {
} else { } else {
//* We do not allow users to change a domain which has been created by the admin //* We do not allow users to change a domain which has been created by the admin
$rec = $app->db->queryOneRecord("SELECT domain from mail_domain WHERE domain_id = ?", $this->id); $rec = $app->db->queryOneRecord("SELECT domain from mail_domain WHERE domain_id = ?", $this->id);
if($rec['domain'] != $this->dataRecord["domain"] && $app->tform->checkPerm($this->id, 'u')) { if($rec['domain'] != $this->dataRecord["domain"] && !$app->tform->checkPerm($this->id, 'u')) {
//* Add a error message and switch back to old server //* Add a error message and switch back to old server
$app->tform->errorMessage .= $app->lng('The Domain can not be changed. Please ask your Administrator if you want to change the domain name.'); $app->tform->errorMessage .= $app->lng('The Domain can not be changed. Please ask your Administrator if you want to change the domain name.');
$this->dataRecord["domain"] = $rec['domain']; $this->dataRecord["domain"] = $rec['domain'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment