added security check to make sure user only sees docs with appropriate permissions
Modified coloring to make it more clear