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:
@@ -114,7 +114,7 @@ module DiscoursePoll
|
||||
polls,
|
||||
each_serializer: PollSerializer,
|
||||
root: false,
|
||||
scope: Guardian.basic_user,
|
||||
scope: Guardian.new(nil),
|
||||
).as_json
|
||||
post.publish_message!("/polls/#{post.topic_id}", post_id: post.id, polls: polls)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user