Assigning mail domain to other client via remote api does not work for administrator
While developing an ISPConfig plugin I wrote some additional functions for the remote API to be used only by my plugin. For this purpose I created a new class 'local_remoting' inheriting from the original remoting class.
Inside this new class I wrote a function mail_domain_assign for the purpose of assigning mail domains to other clients. The code for this is basically:
$maildomain = $this->mail_domain_get($session_id, $maildomain_id); $this->mail_domain_update($session_id, $new_client_id, $maildomain_id, $maildomain);
The code works for all clients, except for the admin ($new_client_id=0). Is this bug or feature?
BTW: This is also the case with the mail_user_update function of the API.