Added code to make links visible to authorized users only.