Disable option "External Accounts" only for User Level in PHPWebAdmin

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
xpunac
Normal user
Normal user
Posts: 51
Joined: 2012-11-02 09:45

Disable option "External Accounts" only for User Level in PHPWebAdmin

Post by xpunac » 2014-12-04 22:53

If you want to restrict local domain user about using external domain account, you can do this.
Comment line:28 on file "include_treemenu.php" located in PHPWebAdmin directory.

ORIGINAL CODE:

Code: Select all

$dtree .= "d.add(" . $dtitem++ . ",$di,'" . GetStringForJavaScript("External accounts") . "','index.php?page=account_externalaccounts&accountid=" . $obAccount->ID . "&domainid=" . $obDomain->ID. "');\r\n";
MODIFIED CODE:

Code: Select all

#COMMENT#  $dtree .= "d.add(" . $dtitem++ . ",$di,'" . GetStringForJavaScript("External accounts") . "','index.php?page=account_externalaccounts&accountid=" . $obAccount->ID . "&domainid=" . $obDomain->ID. "');\r\n";
Now it is disable only for User Level Account. Have Fun. :)

Post Reply