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-picture_replace_user_access-2062015-4.patch | 1.02 KB | phiit |
| #1 | drupal-picture_replace_user_access-2062015.patch | 1.71 KB | internetdevels |
Comments
Comment #1
internetdevels commentedHere is the patch.
Comment #2
andypostNice clean-up, defaults already provides this.
Comment #3
alexpottPatch no longer applies
Comment #4
phiit commentedRerolled
Comment #5
andypostGreat!
Comment #6
webchickCommitted and pushed to 8.x. Thanks!