My app has a Permission model and permissions table with an email field. Existing users (User model) can add the email addresses of people who they would like to invite to view their information. Those email addresses are stored in the permissions.email field in the database.
How do I go about modifying Devise’s registration process so that it only allows people with an email address in the permissions table to create an account?
did this before with a validator on the user model; e.g.
and then create something like this