Participant Role is determined wrong
The role only has user/moderator variants, but should actually also have a guest variant. In many places participation kind is used, which is set to registered by default and not derived from the actual user properties/join_success etc.