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.
Let's start to convert all calls to user_access() with the new AccountInterface::hasPermission() method.
Part of #2048171: [meta] Replace user_access() calls with $account->hasPermission() wherever possible.
Change records for this issue:
Comment | File | Size | Author |
---|---|---|---|
#5 | drupal-overlay_replace_user_access-2062009-5.patch | 2.63 KB | InternetDevels |
#5 | interdiff.txt | 1.38 KB | InternetDevels |
#1 | drupal-overlay_replace_user_access-2062009.patch | 2.8 KB | InternetDevels |
Comments
Comment #1
InternetDevels CreditAttribution: InternetDevels commentedPatch attached.
Comment #3
InternetDevels CreditAttribution: InternetDevels commented#1: drupal-overlay_replace_user_access-2062009.patch queued for re-testing.
Comment #5
InternetDevels CreditAttribution: InternetDevels commentedOne more try.
Comment #6
andypostStill applies cleanly, all 4 fixed
git grep user_access core/modules/overlay/
Comment #7
webchickCommitted and pushed to 8.x. Thanks!