LPS-36514 Fix tests. Revert commit 359dc34a454ed09ffe93786c89bf3aab05c4a6dc because this logic is not peformed by advanced permission checker (permission checker only checks for MANAGE_SUBSITE and MANAGE_SUBGROUP permission, but doesn't consider if the user is a SITE/ORGANIZATION ADMIN of ancestor groups)
LPS-36514 fix source formatting. When checking if a user is an admin of a site, we need to check either if we have MANAGE_SUBSITES in the parent sites or if we have MANAGE_SUBORGANIZATIONS in the parent organizations. We need this check for both of them.