Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The module denies access to regular user with 'clone own node' permission.
Problem
In NodeCloneFormController::access() node owner id (uid) is queried in a way which results in NULL. Hence following comparisons wont work.
Solution
Replace
$node->uid->value
with
$node->getOwner()->id()
Comment | File | Size | Author |
---|---|---|---|
#7 | 2746363-fix-broken-access-7.patch | 751 bytes | mallezie |
#4 | 2746363-3.patch | 751 bytes | rajeshwari10 |
Comments
Comment #2
rajeshwari10 CreditAttribution: rajeshwari10 as a volunteer and at Blisstering Solutions commentedComment #3
ragnarkurm CreditAttribution: ragnarkurm as a volunteer and at Wunder commentedComment #4
rajeshwari10 CreditAttribution: rajeshwari10 as a volunteer and at Blisstering Solutions commentedChanges as per suggestion.
Thanks!!
Comment #5
ragnarkurm CreditAttribution: ragnarkurm as a volunteer and at Wunder commentedJust out of curiosity - what is patch naming convention (why 2746363-fix-broken-access.patch -> 2746363-3.patch) ?
Comment #6
asrobI successfully applied rajeshwari10's patch, but as I can see ragnarkurm's one is good as well. RTBC'ed!
Comment #7
malleziePatch would not apply with composer patches. Rerolled.