Skip to content

Commit 1e34cf2

Browse files
committed
4992: Fixed comment
1 parent 64ad721 commit 1e34cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/InteractiveSlide/InstantBook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ function (CacheItemInterface $item) use ($slide, $resource, $interactionRequest,
179179
throw new NotAcceptableException('InteractiveSlideConfig not found');
180180
}
181181

182-
// Optional limiting of available resources.
183182
$this->checkPermission($interactiveSlideConfig, $resource);
184183

185184
$feed = $slide->getFeed();
@@ -493,7 +492,8 @@ private function getHeaders(string $token): array
493492
private function checkPermission(InteractiveSlideConfig $interactive, string $resource): void
494493
{
495494
$configuration = $interactive->getConfiguration();
496-
// Optional limiting of available resources.
495+
496+
// Will only limit access to resources if list is set up.
497497
if (null !== $configuration && !empty($configuration['resourceEndpoint'])) {
498498
$allowedResources = $this->getAllowedResources($interactive);
499499

0 commit comments

Comments
 (0)