Skip to content

Commit

Permalink
404 on invisble bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Nov 21, 2024
1 parent 2a611bf commit 50a7d23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/BundlesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ class BundlesController
{
public function show(Bundle $bundle): View
{
abort_unless($bundle->visible || current_user()?->hasAccessToUnReleasedProducts(), 404);

$payLink = null;

if (current_user()) {
$payLink = current_user()->getPayLinkForBundle($bundle);
}
Expand Down

0 comments on commit 50a7d23

Please sign in to comment.