- Issue created by @jwilson3
- last update
over 1 year ago Custom Commands Failed - @jwilson3 opened merge request.
- Status changed to Needs review
over 1 year ago 11:10pm 30 April 2023 - Status changed to Needs work
over 1 year ago 12:47am 1 May 2023 - πΊπΈUnited States smustgrave
Thank you for reporting.
Next step would be to write a test showing this issue.
- π¬π§United Kingdom catch
I think this might have been found and fixed already via phpstan in π Fix PHPStan L1 error "Relying on entity queries to check access by default is deprecated..." Fixed . Please check on 10.1?
- πͺπ¨Ecuador jwilson3
@catch yes. It appears you're correct that this has been fixed on D10.1 with commit from #3330981:
https://git.drupalcode.org/project/drupal/-/commit/c49ae937eab4115b6c3d6...
The actual fix was a 2-line code change and is slightly different than the 1-liner approach I'd made here, but logically equivalent since both work on the same $query variable.
Also it looks like the decision was to go with ::accessCheck(TRUE), instead of FALSE that I suggested here. AFAICT this is fine.
Given there are no tests to prove how it works for different user perms one way or another, someone with a deeper use case than my own would have to appear and show that the logic is not working correctly.
- Status changed to Closed: duplicate
over 1 year ago 3:14pm 1 May 2023