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

Ajustement de la logique des permissions pour vérifier is_authenticated #1296

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

alemangui
Copy link
Collaborator

@alemangui alemangui commented Nov 18, 2024

Closes #1293

Issue Sentry

https://sentry.incubateur.net/organizations/betagouv/issues/124081/?project=146&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=7d&stream_index=10

Scope

Dans le cas de perte de session ou requête anonyme, on doit d'abord vérifier si l'utilisateur·ice n'est pas une instance de AnonymousUser, car ce modèle n'a pas de propriétés tels que declarable_companies.

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.

AttributeError dans les permissions lors qu'on a un AnonymousUser
1 participant