Hello,
When a user (say A) has registered to an event, if some other user B has cancelled it's registration, then the user A can register again to the same event.

So my question is :
Is there a way to disable registration from users whose previous registration to the event has been cancelled ?

Thank you !

Comments

rudiedirkx’s picture

Status: Active » Fixed

You can implement hook_node_registration_access() to customize registration access. Look at node_registration.api.php.

n.carrier’s picture

Hello and thank you for your answer.
I'm trying to implement this hook, but I don't know which method to use to check if the user already has a canceled registration.
Do I must query the node_registration directly ? Or does the module provide an API for that ?

rudiedirkx’s picture

No API for fetching canceled registrations, so you should query the db directly. Very easy query.

If you want the user to see a message when registering, you should alter the form and add a validation handler. If you override the access, the user won't even see the form or tab/page. Whichever you want.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.