If an anonymous user responds to a comment, he will not receive any message after sending. The user should not have the right "Skip comment approval".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vbagin created an issue. See original summary.

bit-checker’s picture

Category: Feature request » Support request
qzmenko’s picture

Status: Active » Closed (works as designed)

(EDITED) Closed by mistake. I did not notice that this applies to the 8 version of the module

kmetz’s picture

Category: Support request » Bug report
Status: Closed (works as designed) » Needs review
FileSize
1.04 KB

Reopening, I can reproduce the issue (actually spent some time debugging it with the original reporter) and have a patch that solved it for us.

The "Notification Message" setting is unrelated. All works well with normally added comments.
But when you use the ajax-loaded reply form to reply to an existing comment as anonymous user, you won't get any feedback at all. The message response want's to attach itself to the newly added comment, which is not shown if you lack the "skip comment approval" permission, so the message needs to attach to the replied-to comment (like with errors).

A cleaner solution than the one in the patch might be to check the actual view permissions on the $comment entity. However, $comment->access('view') (instead of the hasPermission() call) always returned TRUE for anonymous users, which looks like an opportunity to debug deeper.

  • qzmenko committed 9aa27c6 on 8.x-1.x authored by kmetz
    Issue #2877624 by kmetz, vbagin, qzmenko: anonymous user responds to a...
qzmenko’s picture

Status: Needs review » Fixed

Thanks, commited.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.