Added a check for anonymous user

This will only show text for a non-logged in user and shows links for the logged in user.
This is for my task - https://www.google-melange.com/gci/task/view/google/gci2014/5245011075530752
Turns out that doesn't work for app = "hrm" and function = "staff" or "volunteer" as those aren't tables -- they are both lumped into hrm_human_resource.  So we need a way to get the table name given the app and function.  Don't really want to make this a special case, as it's not the business of the default controller to know about the innards of the hrm module.  We may need to ask what the correct process is for getting the table name.