Closed (fixed)
Project:
Nodeaccess
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2021 at 08:07 UTC
Updated:
10 Nov 2022 at 02:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jungleUpload the patch first, comments coming next.
Comment #3
jungleOops, #2 is a wrong patch. Reuploading.
Comment #4
jungleShouldn't it be renamed to MODULE_NAME.service.yml?
AccessInterface no longer defines any methods. See https://www.drupal.org/node/2266817. Removed.
Refactored to pass the Drupal check analysis
Comment #7
timodwhit commentedI have reviewed the commit and made additional changes. All looked very good, just simplified some of the grant access check logic by removing the service that was only used on the form, and making sure Node:: and NodeType:: were not used.
MR is open
Comment #8
alison@timodwhit I can't look now so I'll just ask: Did you include what @jungle suggested in #4?
@jungle can you review #6/#7, or the MR itself? (rather than @timodwhit reviewing their own commits :) )
Thank you both!
Comment #9
alisonHmm I think we ended up getting this work done in #3236465.
@jungle if you agree, I'll add @timodwhit to the credits over there. If not, since 3236465 is further along at this point (🙁), I think we'll need to restart the work on this issue, after 3236465 is committed.
Comment #10
jungleHi, @alison, sorry for missed your DM on slack and being late.
Comment #11
jungleChanges FYI
I think it's worthing to have $config_factory defined in \Drupal\Core\Form\ConfigFormBase injected here. Even calling $this->config() still works without doing it.
To make PHPStorm happy
Comment #12
jungleIssue filed for #4.1 and #4.2 Please see and review #3316343: Refactor code and get rid of NodeGrantAccessCheck
Comment #13
jungleComment #15
jungleCommitted to the new 2.0.x branch