Skip to content

Commit

Permalink
Fix error exception on maintainer user login
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Sep 25, 2023
1 parent 3bb3474 commit 19ceba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/SubRepositoryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function getTwigData(UserInterface $user = null): array
}

if ($user instanceof PacketonUserInterface) {
$allowed = $user->getSubRepos();
$allowed = $user->getSubRepos() ?: [];
$data = array_filter($data, fn ($item) => in_array($item['id'], $allowed, true));
}

Expand Down

0 comments on commit 19ceba6

Please sign in to comment.