MenuItem_Adding Server Event

in V2025 MenuItem_Adding function can you still use CurrentUserInfo()?
if i do a var_dump(CurrentUserInfo()); null is returned

thanks

  1. You need to be logged in before you can use CurrentUserInfo() (or there is no current user), it returns null for anonymous user.
  2. The CurrentUserInfo() requires an argument which is one of the field name in the users table.