Open utsab opened 8 months ago
We are reserving this issue for the CTI-CodeDay Micro-internship students.
This issue is reproducible without signing in either. Should both cases redirect to the error page?
If you were to change the menu button on the nav bar to send you to /admin instead, this same behavior occurs. Refreshing the page seems to get the redirect to work again for both /classes and /admin
Describe the bug When an unauthorized user (not a "TEACHER") clicks on the "classes" link, the app redirects to a blank page.
To Reproduce Steps to reproduce the behavior:
Expected behavior We should see a more descriptive error message that says "Access Denied". The browser should redirect to the /error page.
Screenshots Current behavior (blank screen):![Screen Shot 2023-10-19 at 8 40 46 PM](https://github.com/freeCodeCamp/classroom/assets/6780322/71ca1b1d-5ebf-4309-bd6e-ee3f20bd3753)
Expected behavior:![Screen Shot 2023-10-19 at 8 40 25 PM](https://github.com/freeCodeCamp/classroom/assets/6780322/52061131-fb3e-4aad-b03d-a7a5b84d1e0c)
Additional context I am using Github Codespaces (Linux) to reproduce this issue.