Internal: Fix access to public course documents for authenticated users - refs BT#22191

pull/5922/head
christianbeeznst 10 months ago
parent 27cc4ae121
commit 57e4a10148
  1. 5
      src/CoreBundle/Security/Authorization/Voter/ResourceNodeVoter.php

@ -173,6 +173,11 @@ class ResourceNodeVoter extends Voter
) {
return true;
}
if ($firstLink->getCourse() instanceof Course
&& $firstLink->getCourse()->isPublic()
) {
return true;
}
}
$linkFound = 0;

Loading…
Cancel
Save