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

Ensure all the API routes reject banned users #590

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

fozziethebeat
Copy link
Collaborator

Closes #589

This creates a new API wrapper withoutRole that sends a 403 whenever a user has no token or has a specified role. We wrap all the API routes except the already wrapped admin routes with this new wrapper and ensure that banned users can't fetch tasks or do anything meaningful.

username is left unchanged for now.

@AbdBarho AbdBarho merged commit 8ce84ec into main Jan 10, 2023
@AbdBarho AbdBarho deleted the 589-reject-banned-users branch January 10, 2023 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable web app for users that are given the banned role
2 participants