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 |
---|---|---|---|
#11 | 2062017-replace-user_access-calls-11.patch | 654 bytes | deimos |
#9 | 2062017-replace-user_access-calls-9.patch | 653 bytes | wesleydv |
#3 | 2062017-replace-user_access-calls-3.patch | 637 bytes | rhm5000 |
#1 | drupal-rdf_replace_user_access-2062017.patch | 1.07 KB | InternetDevels |
Comments
Comment #1
InternetDevels CreditAttribution: InternetDevels commentedHere is the patch.
Comment #2
andyposthttps://drupal.org/node/2032447 Drupal:currentUser()
Comment #3
rhm5000 CreditAttribution: rhm5000 commentedComment #4
andypostgreat!
Comment #5
webchickCommitted and pushed to 8.x. Thanks!
Comment #7
bohartSeems that last patch does not commit to core:
http://drupalcode.org/project/drupal.git/blame/HEAD:/core/modules/rdf/rd...
Also I cannot find a commit associated to current issue:
http://drupalcode.org/project/drupal.git?a=search&h=HEAD&st=commit&s=206...
Seems that we need to reopen this issue.
Comment #8
alexpottPatch no longer applies.
Comment #9
wesleydv CreditAttribution: wesleydv commentedReroll against head
Comment #10
andypostShould be
\Drupal::
Comment #11
deimos CreditAttribution: deimos commentedcorrected
Comment #12
wesleydv CreditAttribution: wesleydv commentedLooks OK to me.
Comment #13
webchickCommitted and pushed to 8.x. Thanks!