Prevent 'AnonymousUser' object Error on Report Click when User is not signed in
Closed this issue · 0 comments
kunal2812 commented
Problem
When an unregistered user (not signed in) clicks on the "Report" button on the HomePage (/Places/complaints), it triggers a 'AnonymousUser' object is not iterable error.
Expected Behaviour
Unregistered users should not be able to access the Report page, the "Report" button should either be unclickable or redirect them to the signup/login page to prevent the 'AnonymousUser' error.
Note:
- Create a new branch for every task to isolate changes
- Start working on the issue only when it is assigned to you
- Submit the PR on time, no extra time will be allotted