regression (unreleased I think)
Sites with CiviMember disabled cannot create relations
Issue is getContactMembershipCount now checks permissions but on sites with civimember disabled the required permissions will not be held
This regressed due to recent changes in this function but I think the fix is not to call it when civimember is disabled