Use $account from $reqeust

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vijaycs85’s picture

Status: Active » Needs review
FileSize
1.12 KB

Initial patch...

Status: Needs review » Needs work

The last submitted patch, 2064697-remove-user_access-1.patch, failed testing.

vijaycs85’s picture

Status: Needs work » Needs review

#1: 2064697-remove-user_access-1.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 2064697-remove-user_access-1.patch, failed testing.

Gábor Hojtsy’s picture

Fails with

Fatal error: Call to a member function getString() on a non-object in /var/lib/drupaltestbot/sites/default/files/checkout/sites/default/modules/config_translation/lib/Drupal/config_translation/Tests/ConfigTranslationUITest.php on line 379

Looks like some other issue in the module? Caused by core changes.

vijaycs85’s picture

Status: Needs work » Needs review

#1: 2064697-remove-user_access-1.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 2064697-remove-user_access-1.patch, failed testing.

vijaycs85’s picture

YesCT’s picture

Status: Postponed » Needs work

unpostponing since #2062151: Create a current user service to ensure that current account is always available is in.

Not sure if we should wait additionally on #2048223: Add $account argument to AccessCheckInterface::access() method and use the current_user service. It's an api change... and might not be close to being done.

Gábor Hojtsy’s picture

Status: Needs work » Needs review
FileSize
1.02 KB

Rerolled at least with Drupal::currentUser(). I think this is a fine interim step if we want to get rid of user_access() sooner.

Status: Needs review » Needs work

The last submitted patch, 2064697-remove-user_access-10.patch, failed testing.

tstoeckler’s picture

Status: Needs work » Needs review
tstoeckler’s picture

Let's see if this passes now. BTW, I also included this fix in #2085925: Autogenerate config entity translation mapping as much as is sane. (Sorry, couldn't resist.)

Gábor Hojtsy’s picture

Status: Needs review » Closed (duplicate)

Marking duplicate on #2085925: Autogenerate config entity translation mapping as much as is sane which has better coding style solution for this.