diff --git a/composer.json b/composer.json index 2abcf1f..b10f719 100644 --- a/composer.json +++ b/composer.json @@ -58,5 +58,10 @@ "./vendor/bin/phpcs --standard=Drupal --ignore=*.md,vendor --extensions=php,module,inc,install,test,profile,theme,css,info .", "./vendor/bin/phpcpd --names='*.module,*.inc,*.test,*.php' --exclude=vendor ." ] + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } } diff --git a/src/EventDownloadService.php b/src/EventDownloadService.php index 36e41fe..4f84f56 100644 --- a/src/EventDownloadService.php +++ b/src/EventDownloadService.php @@ -109,6 +109,7 @@ public function libcalEventToNode(array $events) public function queryEventNode($event_id) { $query = \Drupal::entityQuery('node'); + $query->accessCheck(FALSE); $query->condition('status', 1); $query->condition('type', 'event'); $query->condition('field_libcal_id', $event_id); @@ -136,6 +137,7 @@ public function updatePastFieldEventNode($config) // Begin constructing the query // All event types with a start date in the past $query = \Drupal::entityQuery('node'); + $query->accessCheck(FALSE); $query->condition('type', 'event'); $query->condition('field_start_date', $now, '<'); @@ -178,6 +180,7 @@ public function deleteEventNodes($events) { // Get all future events $query = \Drupal::entityQuery('node'); + $query->accessCheck(FALSE); $query->condition('type', 'event'); $query->condition('field_start_date', $now, '>='); $nids = $query->execute();