Till Brehm
2016-05-24 a775b024c9929f720771830c15e8b77303595cc0
Merge branch 'master' into 'stable-3.1'

client email domains (Fixes: #3887)



See merge request !344
1 files modified
2 ■■■ changed files
interface/web/mail/mail_domain_edit.php 2 ●●● patch | view | raw | blame | history
interface/web/mail/mail_domain_edit.php
@@ -241,7 +241,7 @@
        if($_SESSION["s"]["user"]["typ"] != 'admin') {
            // Get the limits of the client
            $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
            if($this->id > 0) {
                // restore the server ID if the user is not admin and record is edited