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
See if you can use auth.s3_has_permission to check that the user has permission to do function on app.  auth.s3_has_permission is used just a bit later, at line 214 and following.  Find out what app and function contain.  If function is a CRUD method or similar, and if app is a module or table, then s3_has_permission will tell you if the user can do whatever it is, regardless of whether they are logged in.  If they don't have permission, then check if they have "read" permission before showing them the plain text.