Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Block users from being able to send contact messages #3075

Open
benfurber opened this issue Dec 15, 2023 · 0 comments · May be fixed by #3229
Open

Feature: Block users from being able to send contact messages #3075

benfurber opened this issue Dec 15, 2023 · 0 comments · May be fixed by #3229

Comments

@benfurber
Copy link
Member

Description

Currently under beta, but soon to be released, is a contact form. It will allow logged in users to messages workspaces. Right now if a user abuses the messaging feature, the only option is for admins to delete the user account.

We want to change it so that a user must be authenticated through the sign-up journey AND is not blocked from sending messages.

Build suggestion

Add a utility for both UserContactForm on the frontend and the isValidEmailCreationRequest function that checks a user has verified their email address and does not have the isBlockedFromMessaging set to true on their account.

For the form, it's fine just to keep the form hidden if the conditions aren't met.

Testing

At a minimum please include these new scenarios in the UserContactForm test script. But you'll probably also create a little util so add a test for that too. Plus I'd personally love it if a cypress test is added for this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New / Under Discussion
Development

Successfully merging a pull request may close this issue.

1 participant