Skip to content

Commit 3301bec

Browse files
author
Magnar Eivind Martinsen
committed
Fixed landingpages access config
1 parent e943623 commit 3301bec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

metsis/metsis_lib/src/Controller/DynamicLandingPagesController.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Drupal\Component\Serialization\Json;
66
use Drupal\Core\Access\AccessResult;
77
use Drupal\Core\Controller\ControllerBase;
8-
use Drupal\Core\Session\AccountInterface;
98
use Drupal\Core\Url;
109
use Drupal\search_api\Entity\Index;
1110
use Symfony\Component\HttpFoundation\Request;
@@ -1017,13 +1016,13 @@ protected function generateLandingPage($main_config, $host, $fullhost, $id, $id_
10171016
/**
10181017
* A custom access check.
10191018
*
1020-
* @param \Drupal\Core\Session\AccountInterface $account
1019+
* @param Symfony\Component\HttpFoundation\Request $request
10211020
* Run access checks for this account.
10221021
*
10231022
* @return \Drupal\Core\Access\AccessResultInterface
10241023
* The access result.
10251024
*/
1026-
public function access(AccountInterface $account) {
1025+
public function access(Request $request) {
10271026
// Get the metsis general config (metsis_lib)
10281027
$config = $this->configFactory->get('metsis_lib.settings');
10291028
// Only enable access if dynamica landing pages are enabled

0 commit comments

Comments
 (0)