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.
NodeRevisionAccessCheck is still using user_access(), let's replace this with $account->hasPermission(). This is really easy as we already get the account passed into access checks now anyway.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2129809-1.patch | 1.4 KB | damiankloip |
d8.NodeRevisionAccessCheck-hasPermission.patch | 1.41 KB | damiankloip | |
Comments
Comment #2
damiankloip CreditAttribution: damiankloip commentedSorry.
Comment #3
dawehnerI don't see any kind of problem with this patch. Perfect!
Comment #4
Xano2: 2129809-1.patch queued for re-testing.
Comment #5
webchickCommitted and pushed to 8.x. Thanks!