How to make Navbar parts invisible when not logged in?

I would like to have a Top Navbar with certain shortcuts what are not visible if not logged in,
and maybe the other way around, when you are logged in let say as administrator you see things different from customers logged in?