From 1d0a8d1c662aa0330b8200606f3cb79f6a19e8c8 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Tue, 20 Nov 2018 22:38:43 +0100 Subject: [PATCH] First draft domains_domain_update --- interface/lib/classes/remote.d/domains.inc.php | 10 ++++++++++ interface/web/client/lib/remote.conf.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/interface/lib/classes/remote.d/domains.inc.php b/interface/lib/classes/remote.d/domains.inc.php index 33830335d8..ef768825b9 100644 --- a/interface/lib/classes/remote.d/domains.inc.php +++ b/interface/lib/classes/remote.d/domains.inc.php @@ -65,6 +65,16 @@ class remoting_domains extends remoting { return $this->insertQuery('../client/form/domain.tform.php', $client_id, $params); } + //* Update a record + public function domains_domain_update($session_id, $client_id, $params) + { + if(!$this->checkPerm($session_id, 'domains_domain_update')) { + throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.'); + return false; + } + return $this->updateQuery('../client/form/domain.tform.php', $client_id, $params); + } + //* Delete a record public function domains_domain_delete($session_id, $primary_id) { diff --git a/interface/web/client/lib/remote.conf.php b/interface/web/client/lib/remote.conf.php index d58029e851..0c2449b939 100644 --- a/interface/web/client/lib/remote.conf.php +++ b/interface/web/client/lib/remote.conf.php @@ -1,7 +1,7 @@