Skip to content
Snippets Groups Projects
Commit c878bd41 authored by Florian Schaal's avatar Florian Schaal
Browse files

client email domains (Fixes: #3887)

parent 2b8e5192
No related branches found
No related tags found
No related merge requests found
...@@ -241,7 +241,7 @@ class page_action extends tform_actions { ...@@ -241,7 +241,7 @@ class page_action extends tform_actions {
if($_SESSION["s"]["user"]["typ"] != 'admin') { if($_SESSION["s"]["user"]["typ"] != 'admin') {
// Get the limits of the client // Get the limits of the client
$client_group_id = $app->functions->intval($_SESSION["s"]["user"]["default_group"]); $client_group_id = $app->functions->intval($_SESSION["s"]["user"]["default_group"]);
$client = $app->db->queryOneRecord("SELECT limit_maildomain, default_mailserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?", $client_group_id); $client = $app->db->queryOneRecord("SELECT client.mail_servers, limit_maildomain, default_mailserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?", $client_group_id);
// When the record is updated // When the record is updated
if($this->id > 0) { if($this->id > 0) {
// restore the server ID if the user is not admin and record is edited // restore the server ID if the user is not admin and record is edited
......
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