Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 550
    • Issues 550
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #3444

Closed
Open
Created Dec 17, 2014 by Thomas Teves@rootuser

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.

Edited Aug 28, 2020 by Thom
Assignee
Assign to
Time tracking