Skip to content

Improved compatibility with anonymous user being disabled#889

Open
Avamander wants to merge 1 commit intomaxcountryman:mainfrom
Avamander:patch-1
Open

Improved compatibility with anonymous user being disabled#889
Avamander wants to merge 1 commit intomaxcountryman:mainfrom
Avamander:patch-1

Conversation

@Avamander
Copy link
Copy Markdown

Flask-Security added the configuration option SECURITY_ANONYMOUS_USER_DISABLED in version 5.4.0, which will result in current_user being None if they're not logged in.

This PR adds a None check to a few locations, making the option usable.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 95.951%. remained the same
when pulling 2974f6a on Avamander:patch-1
into 019dbe3 on maxcountryman:main.

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