Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2018 at 17:17 UTC
Updated:
1 May 2018 at 12:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersComment #3
tstoecklerComment #4
owenbush commentedLooking at this at DrupalCon Nashville.
Comment #5
owenbush commentedI have added messaging to comments for when an update is attempted. There was no 'delete' operation that I could see in the CommentAccessControlHandler class.
Comment #6
owenbush commentedNeeds review.
Comment #8
josephdpurcell commentedYay! Tests are failing! This is good--it means the tests are working as they should.
Take a look at the tests that are failing; resolution should be a matter of updating those failed tests to use the new error message you've created. I hope this helps!
Comment #9
owenbush commentedThank you. I have updated the test case and added an interdiff too.
Comment #10
owenbush commentedComment #11
borisson_This looks very good, the added message looks solid and we have testcoverage that proves that this works.
Comment #12
josephdpurcell commentedComment #13
josephdpurcell commentedAh! Sorry, wrong click. Setting back to RTBC per #11.
Comment #14
alexpottCrediting @Wim Leers for creating this issue.
Comment #15
alexpottI deliberated whether this should be an instanceof check against AccessResultReasonInterface. I think the code is more readable like this.
Committed 2023ce8 and pushed to 8.6.x. Thanks!