0
[email protected] created
Hi,
I'm in the process of building an app using the Zero template. It will be a multi-tenancy setup, and I'll have two groups (specified by Role) of users in the app. I need restrict the chat feature so that group1 can only chat to group2. Users in group1 should not be able to chat to other users in group1. Can you point me to the best place in the app to start implimenting this functionality?
1 Answer(s)
-
1
Hi,
To chat with another user, first a friendship must be created (see https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Friendships/FriendshipManager.cs#L20).
So, you can create an entity (logic) to restrict friendship creation logic and use it in the related CreateFriendshipAsync method.