mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Revert guardian changes (#24742)
I took the wrong approach here, need to rethink. * Revert "FIX: Use Guardian.basic_user instead of new (anon) (#24705)" This reverts commit9057272ee2. * Revert "DEV: Remove unnecessary method_missing from GuardianUser (#24735)" This reverts commita5d4bf6dd2. * Revert "DEV: Improve Guardian devex (#24706)" This reverts commit77b6a038ba. * Revert "FIX: Introduce Guardian::BasicUser for oneboxing checks (#24681)" This reverts commitde983796e1.
This commit is contained in:
@@ -1988,7 +1988,7 @@ RSpec.describe Search do
|
||||
|
||||
expect(
|
||||
Search
|
||||
.execute("test created:@#{another_user.username}", guardian: Guardian.basic_user)
|
||||
.execute("test created:@#{another_user.username}", guardian: Guardian.new())
|
||||
.posts
|
||||
.length,
|
||||
).to eq(1)
|
||||
|
||||
Reference in New Issue
Block a user