Loading src/Theme/SchedulerThemeNegotiator.php +3 −1 Changes for src/Theme/SchedulerThemeNegotiator.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -24,10 +24,12 @@ class SchedulerThemeNegotiator implements ThemeNegotiatorInterface { * {@inheritdoc} */ public function determineActiveTheme(RouteMatchInterface $route_match) { // Return the admin theme. $config = \Drupal::service('config.factory')->getEditable('system.theme'); $admin_theme = $config->get('admin'); // Return the admin theme only if the user has permission to use it. if (\Drupal::currentUser()->hasPermission('view the administration theme')) { return $admin_theme; } } } Loading
src/Theme/SchedulerThemeNegotiator.php +3 −1 Changes for src/Theme/SchedulerThemeNegotiator.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -24,10 +24,12 @@ class SchedulerThemeNegotiator implements ThemeNegotiatorInterface { * {@inheritdoc} */ public function determineActiveTheme(RouteMatchInterface $route_match) { // Return the admin theme. $config = \Drupal::service('config.factory')->getEditable('system.theme'); $admin_theme = $config->get('admin'); // Return the admin theme only if the user has permission to use it. if (\Drupal::currentUser()->hasPermission('view the administration theme')) { return $admin_theme; } } }