Banning is a process by which the owner can prohibit certain users from accessing the community. Both members and non-members, as well as owners, can be banned from the community and in the case of a restricted membership community, a banned user cannot even submit a request to join the community.
A banned user can be unbanned by the owner and the user's prior privileges are reinstated. If the user was a member before getting banned, the user becomes a member after getting unbanned. Likewise, when an owner gets banned from a community and is then unbanned, the owner becomes the owner of the community again.
MEMBER--> banned--> BANNED/VISITOR--> unbanned--> MEMBER OWNER/MEMBER--> banned--> BANNED/VISITOR--> unbanned--> OWNER/MEMBER