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.
Problem/Motivation
It is impossible for an administrator to delete comments for a closed for comment entity (D8) or node (D7)
Steps to reproduce
- As user 1 or as user with 'Post comment' and 'Administer comments' permission
- Create a node which has comments enabled.
- Create a comment on the node
- Check for the delete link for created comment.
- Edit the node and close for comments
- Check for the delete link for created comment. There is none :-(
Proposed resolution
Fix it.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#1 | delete_comment_on-2427995-1-D7-do-not-test.patch | 1.39 KB | clemens.tolboom |
#1 | delete_comment_on-2427995-1.patch | 775 bytes | clemens.tolboom |
Comments
Comment #1
clemens.tolboomComment #2
clemens.tolboomComment #3
clemens.tolboomWhy bother on CommentItemInterface::CLOSED ? Is 'administer comments' not enough?
Comment #4
pcambraComment #5
ameymudras CreditAttribution: ameymudras commentedComment #6
ameymudras CreditAttribution: ameymudras commentedComment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedRe #3: just checking for the permission seems enough to me.
If we are changing this behaviour for delete, shouldn't we do the same for reply and comment? I think the reply action will be handled once #221761: Comment admins cannot reply to unpublished comments (despite link) goes in.
Comment #19
smustgrave CreditAttribution: smustgrave at Mobomo commentedWasn't able to replicate in 9.5
Can you see if this is still an issue? If so provide updated issue summary and testing steps.
Comment #20
smustgrave CreditAttribution: smustgrave at Mobomo commentedSince it's been 3 months since this moved to PNMI. Which is past the threshold.
If still an issue please reopen with an updated issue summary specifically steps to reproduce.
Thank you!