Hello, i am having trouble getting current logged in user data in plugin.
So, i want my plugin to get current user data when event “before_edit_post” is fired.
My code looks like this:
file: plugins/my-plugin/plugin.rb
DiscourseEvent.on(:before_edit_post) do |post|
currentUserData = ???
end
So, i would like to get current user data in that code block, but cant figure out how.
Can someone please help?
Thank you.