Skip to content

Commit 679f9eb

Browse files
author
Demian
committed
Fixed mail_relay_domain_get; Added mail_relay_domain_update #6399
1 parent ed40da2 commit 679f9eb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

interface/lib/classes/remote.d/mail.inc.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,8 @@ public function mail_relay_domain_delete($session_id, $primary_id)
692692

693693
public function mail_relay_domain_get($session_id, $primary_id)
694694
{
695+
global $app;
696+
695697
if(!$this->checkPerm($session_id, 'mail_relay_get'))
696698
{
697699
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
@@ -702,6 +704,17 @@ public function mail_relay_domain_get($session_id, $primary_id)
702704
return $app->remoting_lib->getDataRecord($primary_id);
703705
}
704706

707+
public function mail_relay_domain_update($session_id, $client_id, $primary_id, $params)
708+
{
709+
if(!$this->checkPerm($session_id, 'mail_relay_update'))
710+
{
711+
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
712+
return false;
713+
}
714+
$affected_rows = $this->updateQuery('../mail/form/mail_relay_domain.tform.php', $client_id, $primary_id, $params);
715+
return $affected_rows;
716+
}
717+
705718
//* Get spamfilter whitelist details
706719
public function mail_spamfilter_whitelist_get($session_id, $primary_id)
707720
{

0 commit comments

Comments
 (0)