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

[B] Fix crash when trying to access roles with an anonymous user #3827

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timbot1789
Copy link
Contributor

This fixes a crash when trying to access records in the local env as an anonymous user. The crash happened when calling roles on an AnonymousUser class, a method the class doesn't have. Adding a mock for it fixes the issue.

It's unclear to me why this isn't happening in edge, or why the issue was only noticed recently. The relevant files haven't been changed in several months. A possible culprit is this commit: 9a94217#diff-25f7b21a047b52c4068e2ef9030192afb4ad52f16d63c3acd7f949a1c6eb42d1R7

However, reverting my branch to before that commit breaks my local env for a variety of different reasons, making it difficult to test.

@zdavis
Copy link
Member

zdavis commented Mar 24, 2025

@scryptmouse Please review this before accepting and also be sure that we understand why this change is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants