talent-connect/connect

[TP/CON]: Suspended account notification for users in a Blocking List

Opened this issue · 0 comments

Context/background

Community members who violate the rules, such as the Code of Conduct, are added to the Blocking List (by Community Managers), which is represented by a checkbox on the Contact page.

image

When users are added to the Blocking List, it's essential to handle their access to our platforms appropriately. This involves restricting their access to maintain a safe environment for all users.

What needs to be done?

We have discussed the solution before, so here is the all information I gathered:

  1. Create the Account Suspended Notification for users that are in a Blocking list (to update the integration to simply check if a Contact is on the block list or not).
    If a blocked user tries to log in, we then show the "Account Suspended Notification" below:

For Connect:
🚫 Account Suspended Notification.
Looks like your account has been deactivated. If you have questions or need assistance, please contact your Student Community Manager (if you are a mentee) or Volunteer Community Manager (if you are a mentor).
Thank you!

For TP:
🚫 Account Suspended Notification.
Looks like your account has been deactivated. If you have questions or need assistance, please contact your Student Community Manager.
Thank you!

Important comments that were made by Team:

  • If the community manager decided to uncheck the box, then the user would go back to exactly the state they were before.
  • The integration always loads the Contact record first. We can make it so the backend denies processing requests for Contacts where the Blocking List checkbox is checked.
  • We should also add some guards on the nestjs side (a "deny requests to load this or that record" check/rule)
  1. Additionally please also fix the error (mentors/mentees logging in from the wrong location) colour - for both this existing error and the new error (see screenshot below):
image

Just for your information here are the reports:
Connect profile+ Blocking list: see report
TP profile+ Blocking list: see report

Thank you!