Problem/Motivation

Unpublished comments have a 'Reply' link but clicking it results in a 403/Access Denied page.

Steps to reproduce

  1. Install Drupal
  2. Publish an article
  3. Post a comment on an article and unpublish it (or, post a comment as a user without permission to skip approval)
  4. View the unpublished comment as admin, see there is a Reply link
  5. Click the Reply link and see 'Access denied'

Proposed resolution

Don't show the reply link on unpublished comments.

Remaining tasks

  1. Agree on approach
  2. Write a patch with tests
  3. Review

User interface changes

Before:

After:

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

CommentFileSizeAuthor
#91 Screenshot 2024-09-10 at 9.59.14 pm.png19.18 KBpameeela
#91 Screenshot 2024-09-10 at 9.59.24 pm.png18.97 KBpameeela
#76 Reply to comment.gif3 MBpameeela
#76 Access denied.gif502.93 KBpameeela
#71 221761-nr-bot.txt149 bytesneeds-review-queue-bot
#63 Screen Shot 2021-06-26 at 2.50.16 PM.png20.86 KBpameeela
#46 re-rolling-the-patch-43-221761-45.patch3.78 KBdeepakaryan1988
#43 comment_admins_cannot-221761-43.patch3.78 KBAnonymous (not verified)
#43 comment_admins_cannot-221761-43.test-fail.patch1.84 KBAnonymous (not verified)
#43 interdiff-38-43.txt696 bytesAnonymous (not verified)
#38 comment_admins_cannot_221761-38.patch3.78 KBAnonymous (not verified)
#38 comment_admins_cannot-221761-38.test-fail.patch1.84 KBAnonymous (not verified)
#38 interdiff-36-38.txt1.04 KBAnonymous (not verified)
#36 comment_admins_cannot-221761-36.patch4.53 KBAnonymous (not verified)
#36 comment_admins_cannot-221761-36.test-fail.patch1.84 KBAnonymous (not verified)
#36 interdiff-32-36.txt3.21 KBAnonymous (not verified)
#35 Screen Shot 2015-03-26 at 21.37.37.png92.11 KBAnonymous (not verified)
#35 Screen Shot 2015-03-26 at 21.37.17.png131.24 KBAnonymous (not verified)
#32 comment_admins_cannot-221761-32.patch2.87 KBAnonymous (not verified)
#32 comment_admins_cannot-221761-32.test-fail.patch1.75 KBAnonymous (not verified)
#32 interdiff-29-32.txt1.5 KBAnonymous (not verified)
#29 comment_admins_cannot-221761-29.patch2.92 KBAnonymous (not verified)
#29 comment_admins_cannot-221761-29.test-fail.patch1.8 KBAnonymous (not verified)
#26 221761-reply-unpublished-comment-26.patch1.12 KBstefank
#20 221761-reply-unpublished-comment-20.patch1.77 KBdixon_
#17 221761-reply-unpublished-comment-17.patch1.75 KBdixon_
#17 221761-reply-on-unpublished-auth.png36.47 KBdixon_
#17 221761-reply-on-unpublished-not-auth.png34.02 KBdixon_
#9 drupal.comment-unpublished.patch1.98 KBsun
#5 commentApproveBeforeReply.patch1.05 KBjredding
#4 commentApproveBeforeReply_1.patch.txt1.57 KBged3000
#3 commentApproveBeforeReply.patch1.63 KBdawehner
#2 commentApproveBeforeReply.patch942 bytesged3000

Issue fork drupal-221761

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ged3000’s picture

Status: Active » Needs review
StatusFileSize
new942 bytes

It strikes me that from this view, it just takes one click to approve a comment, therefore, the first solution makes most sense to me.

Although this runs into the issue raised at fix comment_form_submit redirect across multiple pages, I think it is less confusing to separate the approve/reply functions. To go with the second suggestion, I think you risk either people replying to comments and approving them without realising that they are doing so, or allowing them to go to a lot of effort to write a reply before realising that replying would approve the comment, that they do not want to happen.

I propose this patch, which simply hides the reply link on unapproved comments, as it is a simple, easy to understand fix, and resolves the problem. As this issue hasn't seen much attention in 12+ months, I wonder whether a a quick, simple fix, followed by a feature request for a more complex solution, similar to the second option suggested above, would be most appropriate?

One variation on my patch could be to alter the 'Approve' link to read 'Approve this comment to reply' or something like that.

dawehner’s picture

StatusFileSize
new1.63 KB

there is some codestyle problems here is the the patch which solves this.

One short question: why do you use style font-weight:bold ?

ged3000’s picture

StatusFileSize
new1.57 KB

Thanks very much dereine.

You know, I have no idea why I used font-weight:bold - I think I might have been pondering the idea of using the text 'approve to reply' in a different font or something like that, but then realised that just hiding the reply link probably made just as much sense.

This path has that line removed.

jredding’s picture

StatusFileSize
new1.05 KB

Attaching a new patch updated for HEAD. The last patch does the reported job of removing the reply link on comments that are not published.

jredding’s picture

Status: Needs review » Reviewed & tested by the community

Although I did just upload the last patch it was nothing more than updating the patch for head, setting this to reviewed & tested.

sun’s picture

Issue tags: +Quick fix

.

dries’s picture

Not sure -- why should it be impossible to reply to an unpublished comment? That sounds like it could be a valid use case.

I'd say that the "The comment you are replying to does not exist"-message is invalid.

sun’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.98 KB

Good catch.

Status: Needs review » Needs work

The last submitted patch failed testing.

stinky’s picture

Is there a status on this? I'm using drupal 6.15 and would like users to be able to comment on unpublished content.

Tor Arne Thune’s picture

Version: 7.x-dev » 8.x-dev
Issue tags: +Needs backport to D7

Still a valid issue in Drupal 7.2.

droplet’s picture

Status: Needs work » Needs review
Issue tags: -Quick fix, -Needs backport to D7

#9: drupal.comment-unpublished.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Quick fix, +Needs backport to D7

The last submitted patch, drupal.comment-unpublished.patch, failed testing.

dixon_’s picture

This is a tricky one. By allowing one to reply on unpublished comments, the display of that reply will be a bit off for people that can't see unpublished comments. It will look like the reply was a reply on another node above (see screenshots). I don't know, Dries says in #8 that it could be a valid use, so maybe it is? :)

Anyway, here is a re-roll of sun's patch from #9 that should apply with Git (the last one was from CVS). I also improved the code comment a tiny bit.

dixon_’s picture

Status: Needs work » Needs review
sun’s picture

Status: Needs review » Needs work
+++ b/modules/comment/comment.pages.inc
@@ -47,15 +47,16 @@ function comment_reply($node, $pid = NULL) {
-        $comment = db_query('SELECT c.*, u.uid, u.name AS registered_name, u.signature, u.signature_format, u.picture, u.data FROM {comment} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = :cid AND c.status = :status', array(
+        $comment = db_query('SELECT c.*, u.uid, u.name AS registered_name, u.signature, u.picture, u.data FROM {comment} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = :cid', array(

I don't think you intended to remove u.signature_format

26 days to next Drupal core point release.

dixon_’s picture

Status: Needs work » Needs review
StatusFileSize
new1.77 KB

Thank you! I have no idea how that happened...

sun’s picture

Title: comment reply link on unpublished comments » Comment admins cannot reply to unpublished comments (despite link)
Issue tags: +Needs tests
dixon_’s picture

Status: Needs review » Needs work

If we need tests here, more work is also needed. I'll probably take a look at this in the near future.

jibran’s picture

Issue tags: -Quick fix +Needs reroll

comment_reply is gone now.

alansaviolobo’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 20: 221761-reply-unpublished-comment-20.patch, failed testing.

stefank’s picture

Assigned: Unassigned » stefank
Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new1.12 KB

Hi,

Here is a re-roll of the patch for D8.
I have not removed the Needs tests tag, as Im not sure if that is covered or not. Seems to be that there is an existing test, which Attempt to reply to an unpublished comment (CommentInterfaceTest.php).

Thanks

stefank’s picture

Assigned: stefank » Unassigned
jhedstrom’s picture

Patch still applies. I think a quick assertion or two could be added to CommentInterfaceTest to confirm this fix.

Anonymous’s picture

Added test coverage for this use case.

The last submitted patch, 29: comment_admins_cannot-221761-29.test-fail.patch, failed testing.

jhedstrom’s picture

+++ b/core/modules/comment/src/Tests/CommentInterfaceTest.php
@@ -155,9 +155,18 @@ public function testCommentInterface() {
+    $this->drupalLogout();
...
+    $this->drupalLogout();

These calls shouldn't be needed since drupalLogin() will log out the current user.

Anonymous’s picture

Ah yes. Fixed #31.

The last submitted patch, 32: comment_admins_cannot-221761-32.test-fail.patch, failed testing.

jhedstrom’s picture

This is a tricky one. By allowing one to reply on unpublished comments, the display of that reply will be a bit off for people that can't see unpublished comments. It will look like the reply was a reply on another node above (see screenshots). I don't know, Dries says in #8 that it could be a valid use, so maybe it is? :)

I'm not sure if the current patch addresses this issue or not. If an administrator replies to a non-published comment, is that reply also unpublished by default, or will it appear published? Not sure if this needs addressing or not, but it does seem confusing.

Anonymous’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs tests
StatusFileSize
new131.24 KB
new92.11 KB

You are right. As we have it now, this fix is not complete yet.

A reply to an unpublished comment is published and shown to the user that has no rights on the first comment. It's confusing, and as I see it, wrong.

With the right permissions:

Withoutout the permissions:

Unpublishing the new comment as you propose, will fix this. We'll also need additional coverage.

Anonymous’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests +Documentation
StatusFileSize
new3.21 KB
new1.84 KB
new4.53 KB

This patch explicitly sets a reply to an unpublished comment to the unpublished status. It resolves the issue as mentioned in #34 as expected.

Testing that something is not there, is quite hard. I'm not to sure if what I did there is correct.

I also noticed a copy-paste error in the CommentController::getReplyForm() docblock, so I removed that while I was at it.

Anonymous’s picture

Actually, the comment change is out of scope here. I made a follow-up issue for that #2460479: CommentController::getReplyForm() docblock has a copy paste error.

I'll make new patches for this issue.

Anonymous’s picture

Anonymous’s picture

Issue summary: View changes

Added a beta eval to the summary.

The last submitted patch, 36: comment_admins_cannot-221761-36.test-fail.patch, failed testing.

The last submitted patch, 38: comment_admins_cannot-221761-38.test-fail.patch, failed testing.

mscharley’s picture

Status: Needs review » Reviewed & tested by the community

Looks fine to me.

Anonymous’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new696 bytes
new1.84 KB
new3.78 KB

I found an error in the inline comment, so I fixed that.

The last submitted patch, 43: comment_admins_cannot-221761-43.test-fail.patch, failed testing.

geertvd’s picture

Status: Needs review » Needs work

This looks fine for me.

Small nitpick. RTBC after that is fixed.

+++ b/core/modules/comment/src/Entity/Comment.php
@@ -119,6 +119,12 @@ public function preSave(EntityStorageInterface $storage) {
+          if(!$parent->isPublished()) {

We need an extra space in this if statement.

deepakaryan1988’s picture

Issue tags: +india, +SprintWeekend2015
StatusFileSize
new3.78 KB

Hi @geertvd,
I am re-rolling patch#43 with the modification you mentioned.

geertvd’s picture

Status: Needs work » Needs review

Don't forget to set the status to "Needs review" or the testbot won't pick this up.
Change looks good but please consider adding an interdiff in the future.
Will RTBC this when all tests pass.

deepakaryan1988’s picture

Ok @geertvd !
Thanks for the advice. I will attach interdiff in the future!

geertvd’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Assigned: Unassigned » webchick

The code and test looks fine to me.

+++ b/core/modules/comment/src/Entity/Comment.php
@@ -120,6 +120,12 @@ public function preSave(EntityStorageInterface $storage) {
+          // If the parent is not published, this comment should be unpublished
+          // as well.
+          if (!$parent->isPublished()) {
+            $this->setPublished(FALSE);
+          }

Assigning to @webchick as product manager to confirm that this is the way things should work. I think the chosen behaviour does make sense but I ponder if it is slightly different to the behaviour when unpublishing a parent comment - do it's children stay published? Looking at the UnpublishComment action it looks like this is the case. Of course if the admin wants their comment to be published then they can just publish their comment. But what's weird is that when the parent comment is published it's children added by the admin will not be.

alexpott’s picture

In fact thinking about

But what's weird is that when the parent comment is published it's children added by the admin will not be.

I'm not sure that we should allow admins to post replies to unpublished comments.

In #8 @Dries says this is a valid use case - but if the unpublished comment is never seen and not auto published if the parent comment is - what's the point?

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 46: re-rolling-the-patch-43-221761-45.patch, failed testing.

deepakaryan1988’s picture

Issue tags: -india, -SprintWeekend2015

Removing sprint weekend tag!!
As suggested by @YesCT

mgifford’s picture

Assigned: webchick » Unassigned

Unassigning stale issue. Hopefully someone else will pursue this.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pameeela’s picture

Version: 8.9.x-dev » 9.3.x-dev
Priority: Normal » Minor
Issue summary: View changes
Issue tags: +Bug Smash Initiative
StatusFileSize
new20.86 KB

Updated IS with steps to test and removed outdated code to avoid confusion. This issue still occurs in 9.3.x. Bumping to minor because this does not inhibit functionality.

harshit97 made their first commit to this issue’s fork.

mohit_aghera made their first commit to this issue’s fork.

mohit_aghera’s picture

Status: Needs work » Needs review

- Re-roll the patch for the latest 9.3.x
- Ensure that comment reply remains unpublished when commenting on the unpublished comment
- Added test case.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new149 bytes

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

mohit_aghera’s picture

Status: Needs work » Needs review

Picking up again.
- Update the PR destination and base to 10.1.x
- Add additional test case from past patches. Both looks same to me.
Happy to weigh in other opinions and refactor those.
- All the test cases are passing on local now.

mohit_aghera’s picture

Hiding other patches as the one in #43 seems valid.
PR contains all the changes done in #43

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative

This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

So following the steps in the issue summary with the changes from MR 879 I'm still seeing reply button for unpublished comment.

Don't show the link, or allow admins to reply to unpublished comments?

This is a question so is this the approach that was taken?

Since this is changing the UI before/after screenshots in the issue summary will be needed

Thanks.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

pameeela’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new502.93 KB
new3 MB

Tested manually and this does solve the problem, admins can reply to unpublished comments with the patch.

Before:

After:

smustgrave’s picture

Issue summary: View changes
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Took the gifs from #76 and added to the issue summary user interface section

Ran the test-only feature too

1) Drupal\Tests\comment\Functional\CommentAccessTest::testUnpublishedCommentReplyForCommentAdministrators
Behat\Mink\Exception\ExpectationException: Current response status code is 403, but 200 expected.
/builds/issue/drupal-221761/vendor/behat/mink/src/WebAssert.php:888
/builds/issue/drupal-221761/vendor/behat/mink/src/WebAssert.php:145
/builds/issue/drupal-221761/core/modules/comment/tests/src/Functional/CommentAccessTest.php:152
/builds/issue/drupal-221761/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
ERRORS!
Tests: 3, Assertions: 54, Errors: 1.
PHPUnit 9.6.19 by Sebastian Bergmann and contributors.
Testing Drupal\Tests\comment\Functional\CommentInterfaceTest

Coverage is definitely there

MR does appear to address the problem described in the summary.

Believe this is good.

xjm’s picture

xjm’s picture

Issue summary: View changes
Priority: Minor » Normal
Status: Reviewed & tested by the community » Needs work

Thanks for your work on this issue! Thanks especially @pameeela for the very clear manual testing. I've updated the issue summary with those images.

There are a few coding standards and best practices issues with the current MR (see my comments therein). I do understand that in some cases these are being copied from existing tests and/or surrounding code, but we should not do the wrong thing for the sake of consistency. (If desired, a followup can be filed to improve the best practices in the rest of these tests.)

I think this is pretty close.

xjm’s picture

Saving issue credits.

xjm’s picture

I also just noticed no one actually ever answered @alexpott's question in #50 and #51. NW for that also.

FWIW, I think there is a usecase here, but we should articulate specifically why this is the right approach (vs. removing the link in this case).

If we need to escalate it for further feedback once that reply is given, I think it should go to the usability team and/or comment subsystem maintainers; this is not really a product-level decision. Thanks!

pameeela’s picture

I was a bit unsure about the solution myself, in testing it seemed a bit odd to reply to an unpublished comment. I am not super clear on the use case for replying before approving.

If an admin replies to an unpublished comment, the reply is unpublished as well and it has to be approved separately (even if they have permission to comment without approval). This makes sense, but you can then approve it meaning you could have a published reply to an unpublished comment. And if the original comment is deleted rather than approved, the reply is also deleted. (Why would you reply to a comment you were going to delete ? Well, exactly. But also why wouldn't you just approve the comment before replying?)

Having said all that, the stakes here seem extremely low. But it makes more sense to me to hide the reply link until the comment is approved.

pameeela’s picture

pameeela’s picture

pameeela’s picture

Title: Comment admins cannot reply to unpublished comments (despite link) » Hide reply link for unpublished comments
Issue summary: View changes

Updated based on the latest suggested approach.

catch’s picture

Agreed with the new proposed solution, hiding the link seems right.

catch’s picture

Status: Needs work » Needs review

Put up an MR with test coverage.

catch changed the visibility of the branch 221761-comment-admins-cannot to hidden.

pameeela’s picture

Woohoo! Manual test passed, added updated screenshots to the IS.

lendude’s picture

Status: Needs review » Reviewed & tested by the community

Solution and test code look good, could maybe check for the reply link to exist and not just the text to be a little more specific but this works.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 6067ed426c to 11.x and 3b1e465274 to 11.0.x and f096a302e8 to 10.4.x and 71ac91d7ce to 10.3.x. Thanks!

  • alexpott committed 71ac91d7 on 10.3.x
    Issue #221761 by mohit_aghera, pameeela, dixon_, catch, ged3000, sun,...

  • alexpott committed f096a302 on 10.4.x
    Issue #221761 by mohit_aghera, pameeela, dixon_, catch, ged3000, sun,...

  • alexpott committed 3b1e4652 on 11.0.x
    Issue #221761 by mohit_aghera, pameeela, dixon_, catch, ged3000, sun,...

  • alexpott committed 6067ed42 on 11.x
    Issue #221761 by mohit_aghera, pameeela, dixon_, catch, ged3000, sun,...

Status: Fixed » Closed (fixed)

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