Skip to content

Commit

Permalink
Merge pull request #480 from Neriderc/fix-auth
Browse files Browse the repository at this point in the history
Fix auth issue
  • Loading branch information
Neriderc authored Apr 12, 2024
2 parents 2e10127 + 7d13304 commit 31dbb1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ public function getIndividual($tree, $xref): Individual
public function getChartAction(ServerRequestInterface $request): ResponseInterface
{
$tree = $request->getAttribute('tree');
Auth::checkComponentAccess($this, ModuleChartInterface::class, $tree, Auth::user());

assert($tree instanceof Tree);
if (isset($request->getQueryParams()['xref'])) {
$xref = $request->getQueryParams()['xref'];
Expand Down

0 comments on commit 31dbb1e

Please sign in to comment.