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

core/modules/translation/translation.module:

function translation_user_can_translate_node($node, $account = NULL) {
  // If no user object is supplied, the access check is for the current user.
  if (empty($account)) {
    $account = $GLOBALS['user'];
  }

Comments

sergeypavlenko’s picture

Assigned: sergeypavlenko » Unassigned
Status: Active » Needs review
StatusFileSize
new772 bytes

Fix.

andypost’s picture

Status: Needs review » Reviewed & tested by the community

Nice

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.