Commit 07054918 authored by Pavel Vashchyla's avatar Pavel Vashchyla Committed by Jonathan Sacksick
Browse files

Issue #3269616 by jsacksick, R0djer: The cron job for expiring licenses should...

Issue #3269616 by jsacksick, R0djer: The cron job for expiring licenses should disable access checks.
parent 70f179ba
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ class Cron implements CronInterface {
    // Get all of the active expired licenses.
    $query = $this->entityTypeManager->getStorage('commerce_license')
      ->getQuery()
      ->accessCheck(FALSE)
      ->condition('state', 'active')
      ->condition('expires', $time, '<=')
      ->condition('expires', 0, '<>');