JunctionApp
JunctionApp copied to clipboard
BUG: admin page visible for non logged-in users
🐛 Bug Report
What went wrong? 🤔
User can access https://app.hackjunction.com/admin without logging in. Fortunately, the actions check if the user has required permissions, so it seems no damage can be done.
Expected Behavior
App should check the permissions before accessing a page.
Actual Behavior
The page is shown, if the user happens to know the URL.
Steps to Reproduce Issue
- Log out
- Navigate to https://app.hackjunction.com/admin
- Avot
Solution
Check permissions before routing the user.
Environment
Operating System
macOS Monterey
Browser
Chrome
There's a component called RequiresRole.js, could probably be used in routes.