From df5ff8e5e96645ea4d898cec878b6d956930930a Mon Sep 17 00:00:00 2001 From: tuutti Date: Wed, 11 Sep 2024 10:36:29 +0300 Subject: [PATCH] UHF-10386: Reverted user create route requirements --- helfi_platform_config.services.yml | 3 --- src/Routing/UserCreateRouteSubscriber.php | 27 ----------------------- 2 files changed, 30 deletions(-) delete mode 100644 src/Routing/UserCreateRouteSubscriber.php diff --git a/helfi_platform_config.services.yml b/helfi_platform_config.services.yml index 36d6eeb2e..aa07956a9 100644 --- a/helfi_platform_config.services.yml +++ b/helfi_platform_config.services.yml @@ -75,6 +75,3 @@ services: - '@file_url_generator' tags: - { name: helfi_platform_config.og_image_builder, priority: -100 } - - helfi_platform_config.user_create_route_subscriber: - class: Drupal\helfi_platform_config\Routing\UserCreateRouteSubscriber diff --git a/src/Routing/UserCreateRouteSubscriber.php b/src/Routing/UserCreateRouteSubscriber.php deleted file mode 100644 index 5b16b41da..000000000 --- a/src/Routing/UserCreateRouteSubscriber.php +++ /dev/null @@ -1,27 +0,0 @@ -get('user.admin_create')) { - $route->addRequirements([ - '_role' => 'super_administrator', - ]); - } - } - -}