mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-04 02:57:11 +09:00
* Fix WHM reseller accounts always getting an empty ACL list Server_Manager_Whm::createAccount() called $package->getAcllist(), but Server_Package has never had that method. Its __call() silently swallows calls to undefined methods and returns '', so every reseller account created via WHM had setacls called with an empty acllist - wiping out the initial privileges WHM had just granted via setupreseller. Wire the ACL list through the existing custom-value mechanism instead (same pattern already used for cgi, cpmod, maxlst, hasshell), and skip the setacls call entirely when the hosting plan defines no 'acl' custom value, so the reseller keeps WHM's default privileges instead of having them stripped. Fixes #4173 * Whitelist WHM API action names for cspell src/library/Server/Manager/** is excluded from spellcheck entirely, so Whm.php's own use of these WHM API1 action/field names never tripped the checker. tests/Unit/Server/Manager/WhmTest.php isn't under that exclusion, so add the same words DirectAdmin's custom-value keys already use this pattern for (listpkgs, addpkg, createacct, setupreseller, setacls, acllist) to cspell.json's ignoreWords.