Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | add_views_handlers-1.patch | 6.35 KB | achton |
add_views_handlers.patch | 6.59 KB | dimon4ikzp |
Comments
Comment #1
amirtaiar CreditAttribution: amirtaiar commentedThat's work like a charm!
Thank you for that. And I was just about to disabled module...
Comment #2
rschwab CreditAttribution: rschwab commentedHi 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.
Comment #3
achtonReroll 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.