Part of #2047951: [META] Remove calls to deprecated global $user and $GLOBALS['user']

core/modules/node/lib/Drupal/node/Access/NodeRevisionAccessCheck.php
fix of $account = $GLOBALS['user'];

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anpolimus’s picture

FileSize
666 bytes

REplaced global $user with get account method.

anpolimus’s picture

FileSize
665 bytes

test2

anpolimus’s picture

Status: Active » Needs review
FileSize
666 bytes

replased with new \Drupal::request()->attributes->get('_account');

Status: Needs review » Needs work

The last submitted patch, 2062117-3.patch, failed testing.

m1r1k’s picture

m1r1k’s picture

Status: Needs work » Needs review

Push to retesting

joelpittet’s picture

Assigned: anpolimus » Unassigned
Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

This one looks good to go and applies cleanly as of today.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.