Creator user.conf check_subdomain_owner override for other User domains

Version 1.62.0


The check_subdomain_owner user.conf override for a Reseller creating a User, was not correctly respected: Duplicate: - global: check_subdomain_owner=1 - Reseller "res" has check_subdomain_owner=0 in their user.conf, allowing creation of any sub-domain. - User "fred" already exists under some OTHER creator (not created by "res") with - Reseller "res" creates User "subfred" with 1) The realtime form/json/ajax check passes, as it's checking if "res" could create the under "res" User account (not entirely correct, but accurate for what we need). This is fine. 2) During the creation of User "subfred", was added to the domains.list of subfred prior to the attempted and denied creation of domain "". 3) The creation of was denied as the check was then done as User "subfred", without any user.conf override, thus blocked (Reseller's user.conf was not checked) This caused a broken state for subfred (User deletion does clear it out correctly), but the expected behavior would be to respect the the user.conf of "res" at subfred creation time. Fix moves the subdomain owner check before any part of the domain is created, and also includes the reseller's user.conf for the user creation state. This only applies to User creation. A domain being created by the already existing User would not check for their creator's user.conf override, as the creator is not the one creating the domain in this instance. ---- EVO2029

Interested to try DirectAdmin? Get a 30-day Free Trial!