I have a View with an attachment that has been set to return all nodes for a specific set of criteria. I want all of the node links to be displayed to everyone, but some of the nodes are restricted to logged in users. In other areas of the website, I signify this by adding a "restricted-link" class on any link that goes to restricted content. I have looked at the Views API and been able to hook in and find the resulting node list in a variety of different ways, but I have not been able to figure out how to modify the rendered links.

Can anyone explain how I can cycle through the resulting nodes to test whether or not the current user has access to the node and add a css class to the link to be rendered when access is restricted?

nobody click here