Skip to content

Commit 171d9a0

Browse files
authored
Update Authorizator.php
1 parent 8a37c36 commit 171d9a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Acl/Auth/Authorizator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(array $config, ServiceLocatorInterface $serviceManag
4949
*/
5050
public function authorize(Request $request): bool
5151
{
52-
if (in_array($request->getUriString(), $this->whitelist)) {
52+
if (in_array($request->getUri()->getPath(), $this->whitelist)) {
5353
return true;
5454
}
5555

@@ -61,4 +61,4 @@ public function authorize(Request $request): bool
6161
$authorizator = $this->serviceManager->get(ServiceEnum::AUTHORIZATOR);
6262
return $authorizator->authorize($request);
6363
}
64-
}
64+
}

0 commit comments

Comments
 (0)