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

Users who have not yet been approved cannot be deleted #165

Open
fsando opened this issue Oct 31, 2016 · 0 comments
Open

Users who have not yet been approved cannot be deleted #165

fsando opened this issue Oct 31, 2016 · 0 comments
Labels

Comments

@fsando
Copy link

fsando commented Oct 31, 2016

When a user applies for access they are created as user and a token is stored in a special table until they are approved.

As long as the token is in this table (i.e. as long as the user is not yet approved) they cannot be deleted from the user table, apparently because of foreign key constraint.

I believe this can be corrected by changing the foreign key constraint to ON DELETE CASCADE on the token table.

Actions to replicate:
Apply for access on the front page of dbnp by clicking the signup button and fill in the form.
After this, log in as admin and try to delete this user WITHOUT approving them.

Expected behavior:
The user should be deleted.

Actual behavior:
The user is not deleted.

@ferryjagers ferryjagers added the bug label Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants