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 |
|---|---|---|---|
| #4 | drupal-path_replace_user_access-2062011-4.patch | 1.82 KB | albert volkman |
| #4 | interdiff.txt | 1006 bytes | albert volkman |
| #1 | drupal-path_replace_user_access-2062011.patch | 1.9 KB | internetdevels |
Comments
Comment #1
internetdevels commentedHere is the patch.
Comment #2
andypostDoes not applies
Should use Drupal::currentUser() service
Comment #3
andypostComment #4
albert volkman commentedRe-rolled and applied suggestion from #2.
Comment #5
andypostGreat! all fixed now
Comment #6
webchickCommitted and pushed to 8.x. Thanks!