When I add approve link (or some other link for comments) as field in views, it use core check for access privileges.
Here is the patch, that solves this problem. It changes the standard handler for these fields and introduced the commentaccess check of the user privileges.
Please review it and give a feedback.
Thanks, Dima

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amirtaiar’s picture

That's work like a charm!
Thank you for that. And I was just about to disabled module...

rschwab’s picture

Category: bug » feature

Hi dimon4ikzp! Wow thank you!

Once I get through the bugs in the queue I'll come back around to this. Thanks so much for contributing: comment access with views is going to be a great addition.

achton’s picture

Issue summary: View changes
FileSize
6.35 KB

Reroll for current dev (well, master branch, see #1990708: Create 7.x-1.x branch).

This is working well for me on a live site. I simply applied the patch and my existing views started rendering the links automagically.

The only problem I have is with the edit link, which I do not see permissions for on my install, but that may be specific for me. But that's why I'm not marking as reviewed yet.