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

The mystery of roleless users #609

Open
viktorcsimma opened this issue Jul 29, 2024 · 0 comments
Open

The mystery of roleless users #609

viktorcsimma opened this issue Jul 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@viktorcsimma
Copy link
Contributor

Before the application period this year, the accounts of some campers had no roles whatsoever (not even a tenant role) and therefore, they did not get redirected either to the application page or to the tenant update page (where they could have applied). We have received many complaints about this.

My temporary solution then was to give each of them a tenant role. But this should not have happened...

The query which returned them quite accurately:

SELECT id, name FROM users
WHERE id NOT IN (SELECT user_id FROM role_users)
AND id NOT IN (SELECT user_id FROM applications)
AND id NOT IN (SELECT user_id FROM internet_accesses WHERE has_internet_until > '2024-07-29 00:00:00')
AND created_at > '2024-01-01 00:00:00';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant