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

Prevent cancelled user from registering if registration is closed #10379

Merged
merged 7 commits into from
Dec 10, 2024

Conversation

dunkOnIT
Copy link
Contributor

@dunkOnIT dunkOnIT commented Dec 7, 2024

Tim has been struggling with this issue when they close World's reg, and I realized that the problem is that users with cancelled registrations shouldn't be able to register after reg is closed - but our system views them as having a registration, so we still render the Register panel and accept the "update".

@dunkOnIT dunkOnIT marked this pull request as ready for review December 7, 2024 07:34
@FinnIckler
Copy link
Member

Nope. This will still not show the registration component when a registration is cancelled, but the registration period is still open. The correct solution is to migrate the Registration Closed message to react and then check if the registration is closed and the user is not registered or cancelled and then render that. I can do that on Monday if that is fine

@FinnIckler
Copy link
Member

If you want to do it this weekend we can just merge only the backend and just show the cancelled people the error until monday

@dunkOnIT
Copy link
Contributor Author

dunkOnIT commented Dec 8, 2024

Ah yep of course, very silly. No urgency on this as I think they're all sorted for Worlds now, but removed the frontend change so you can either add it to this PR/raise it in a new one

db/schema.rb Outdated Show resolved Hide resolved
@dunkOnIT dunkOnIT merged commit 9ace91f into thewca:main Dec 10, 2024
2 checks passed
@dunkOnIT dunkOnIT deleted the v3/cancel-cant-reregister branch December 10, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants