LPS-32782 LPS-32908 Cannot create users. When you create a new user, organizationsId in UserServiceImpl.updateUser(...) is not null but empty array so when UserServiceImpl.checkOrganizations(...) is called user doesn't exist so and user.getUserId(userId) throws an Exception
LPS-32782 LPS-32908 the other associations may also be enabled by configuration
LPS-32782 LPS-32908 Technically, CompanyConstants.SYSTEM is equal to 0, but the method is expecting a userId, so chagne it to a manual 0 so we don't think we're passing in a companyId
LPS-32782 LPS-32908 Never check for isMembershipAllowed if user is null
LPS-32782 LPS-32908 Consistency (and prevent null)