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.
On my site, we use comment notify only with anonymous users and handle authenticated user/author/admin notifications using other means (e.g., subscriptions, Rule triggers). We use the 'subscribe to comments' permission to determine who gets the comment_notify UI.
Unfortunately, this doesn't work for roles with admin access to the comments (e.g., moderators), because comment_notify uses 'administer comments' permission to determine who gets access to it.
Patch included.
Comment | File | Size | Author |
---|---|---|---|
comment_notify-permissions.patch | 850 bytes | lirazsiri | |
Comments
Comment #1
gregglesThanks for the issue and patch.
The idea of this permission check is that when an admin modifies someone else's comment they can see and edit the subscription status.
We could change that check to add a test for whether they are editing a comment that is NOT by them and they have administer comments permission.
Comment #2
gregglesHi lirazsiri, will you be able to incorporate my suggestion into your patch?
Comment #3
OddJob CreditAttribution: OddJob commentedWhat is the status of this - does the patch need to be reworked with greggles suggestions? For 6.x and 7.x?
Comment #4
greggles6.x is no longer supported and in my review I believe this does not affect 7.x, so marking as outdated. If this issue is still relevant for 7.x, please reopen.