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 |
---|---|---|---|
#7 | drupal-edit_replace_user_access-2061983-7.patch | 435 bytes | rhm5000 |
#7 | interdiff-2061983-1-7.txt | 485 bytes | rhm5000 |
#1 | drupal-edit_replace_user_access-2061983.patch | 460 bytes | InternetDevels |
Comments
Comment #1
InternetDevels CreditAttribution: InternetDevels commentedPretty simple one.
Comment #3
InternetDevels CreditAttribution: InternetDevels commented#1: drupal-edit_replace_user_access-2061983.patch queued for re-testing.
Comment #5
andypostUse Drupal::currentUser() service https://drupal.org/node/2032447
Comment #6
Wim LeersComment #7
rhm5000 CreditAttribution: rhm5000 commentedComment #8
rhm5000 CreditAttribution: rhm5000 commentedComment #9
Wim LeersThis has extensive test coverage, so if it comes back green, it's definitely good to go :) Thanks!
Comment #10
alexpottCommitted cd882b6 and pushed to 8.x. Thanks!