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 | michaelhiiva |
| #1 | drupal-rdf_replace_user_access-2062017.patch | 1.07 KB | internetdevels |
Comments
Comment #1
internetdevels commentedHere is the patch.
Comment #2
andyposthttps://drupal.org/node/2032447 Drupal:currentUser()
Comment #3
michaelhiiva 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 commentedReroll against head
Comment #10
andypostShould be
\Drupal::Comment #11
deimos commentedcorrected
Comment #12
wesleydv commentedLooks OK to me.
Comment #13
webchickCommitted and pushed to 8.x. Thanks!