Hi I was wondering the correct way to check if a user is authenticated in a razor view in 3.1?
I wanted to hide parts of the navigation etc depending on if a user is logged in.. can you just use @User.Identity.IsAuthenticated
or is there a more correct way?
Thanks for letting me know.. I was hoping to just add this to a base model or something like that but im using the nop-template's mega menu so hooking it in without the source is a little crap..
I ended up using this: