• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to examine the current user inside templateHook listener

#1
I'm looking for the best practice for looking at the current user from within my templateHook event listener. My goal is to examine their secondary_group_ids t make decisions on which content to display.

It seems like the user's information should already be available somewhere without having to perform a database query. What's the best way?