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.
Comments
Comment #1
InternetDevels CreditAttribution: InternetDevels commentedHere is the patch.
Comment #2
andypostStraight
Comment #3
alexpottPatch no longer applies
Comment #4
phiit CreditAttribution: phiit commentedComment #5
phiit CreditAttribution: phiit commentedRerolled
Comment #7
andyposts/$node->uid/$node->getAuthorId()
Comment #8
phiit CreditAttribution: phiit commentedComment #9
phiit CreditAttribution: phiit commentedRerolled
Comment #11
andypostseems HEAD moving faster
Comment #12
rhm5000 CreditAttribution: rhm5000 commentedRerolled
---------------
Aug 29, 2013
5429044d5edf7527b6de311e218cf42934f1a446
Comment #13
andypostNice
Comment #14
webchickPatch no longer applies.
Comment #15
rhm5000 CreditAttribution: rhm5000 commentedRerolled
---------------
Sep 4, 2013
dd20ffdd7a4be7596dff570c0a4900a6f50710d9
Comment #17
LinL CreditAttribution: LinL commented#15: 2062035-translation-replace-user_access-calls-14.patch queued for re-testing.
Comment #18
LinL CreditAttribution: LinL commentedBack to RTBC.
Comment #19
LinL CreditAttribution: LinL commentedRemoving tag (again).
Comment #20
BerdirThere's a critical issue to remove translation.module from core. Shouldn't we close this in favor of that?
Comment #21
LinL CreditAttribution: LinL commentedOh yes, so closing this one in favour of: #1952062: Remove legacy translation module in favor of content translation
Thanks, Berdir.