Limit cPanel operations to current domain

widlak

Registered
Aug 8, 2014
1
0
1
cPanel Access Level
Website Owner
Hi, bit of a php newb here :)

I'm running a multi-site config and want to allow site admins to [only] be able to create email addresses at their current domain. How can I set the $email_domain variable to the current domain? Shouldn't it be something like
$email_domain = $base_url; ??

I'm quite sure I'm way off. Thanks for your help
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Could you elaborate further on how you are limiting the options available to certain users? For instance, are you using our API?

Thank you.