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:
DiscourseEvent.on(:before_edit_post) do |post|
currentUserData = ???
So, i would like to get current user data in that code block, but cant figure out how.
Can someone please help?