Skip to content

Commit

Permalink
8.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Feb 10, 2025
1 parent ce92118 commit 2b65c68
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Stanford Migrate

8.6.10
--------------------------------------------------------------------------------
_Release Date: 2025-02-10_

- Add access to view migration messages for CSV imports.

8.6.9
--------------------------------------------------------------------------------
_Release Date: 2025-01-09_
Expand Down
24 changes: 24 additions & 0 deletions src/EventSubscriber/RouteSubscriber.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

namespace Drupal\stanford_migrate\EventSubscriber;

use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;

/**
* Route subscriber.
*/
final class RouteSubscriber extends RouteSubscriberBase {

/**
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection): void {
if ($route = $collection->get('migrate_tools.messages')) {
$route->setRequirements(['_entity_access' => 'migration.csv']);
}
}

}
2 changes: 1 addition & 1 deletion stanford_migrate.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Adds more functionality to migrate and migrate plus modules'
type: module
core_version_requirement: ^10.3 || ^11
package: 'Stanford'
version: 8.6.9
version: 8.6.10
dependencies:
- drupal:migrate
- empty_fields:empty_fields
Expand Down
4 changes: 4 additions & 0 deletions stanford_migrate.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ services:
arguments: ['@entity_type.manager', '@state']
tags:
- {name: config.factory.override, priority: 5}
stanford_migrate.route_subscriber:
class: Drupal\stanford_migrate\EventSubscriber\RouteSubscriber
tags:
- { name: event_subscriber }

0 comments on commit 2b65c68

Please sign in to comment.