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

FIX: Use Guardian.basic_user instead of new (anon) #270

Merged
merged 1 commit into from Dec 6, 2023

Conversation

martin-brennan
Copy link
Contributor

@martin-brennan martin-brennan commented Dec 6, 2023

c.f. discourse/discourse@de98379

There will soon be additional login_required checks
for Guardian, and the intent of many checks by automated
systems is better fulfilled by using BasicUser, which
simulates a logged in TL0 forum user, rather than an
anon user.

c.f. de983796e1b66aa2ab039a4fb6e32cec8a65a098

There will soon be additional login_required checks
for Guardian, and the intent of many checks by automated
systems is better fulfilled by using BasicUser, which
simulates a logged in TL0 forum user, rather than an
anon user.
@martin-brennan martin-brennan force-pushed the dev/replace-guardian-new-no-args-anon-basic branch from 3ba4a11 to 14d63b6 Compare December 6, 2023 01:31
@Drenmi
Copy link
Contributor

Drenmi commented Dec 6, 2023

simulates a logged in TL0 forum user

Just a question regarding this. There is a site setting that allows admins to make new users have a higher trust level by default, e.g. all new users are TL1. Do we need to take this into account here?

Copy link
Contributor

@Drenmi Drenmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@martin-brennan martin-brennan merged commit 7edf6d8 into main Dec 6, 2023
4 checks passed
@martin-brennan martin-brennan deleted the dev/replace-guardian-new-no-args-anon-basic branch December 6, 2023 02:00
martin-brennan added a commit that referenced this pull request Dec 6, 2023
martin-brennan added a commit that referenced this pull request Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants