Skip to content

Commit aac1ba1

Browse files
committed
Fix public menu #375
1 parent 4a4f5d7 commit aac1ba1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v5.9.1
2+
## Fixes
3+
- Public menu can be enabled independently of `is_public` bar setting
4+
15
# v5.9.0
26
# New
37
- Documented `public/{slugOrId}` endpoints

app/Http/Controllers/Public/BarController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BarController extends Controller
2323
public function show(string $slugOrId): BarResource
2424
{
2525
$bar = Bar::where('slug', $slugOrId)->orWhere('id', $slugOrId)->firstOrFail();
26-
if (!$bar->isPublic()) {
26+
if (!$bar->isPublic() && !$bar->menu->is_enabled) {
2727
abort(404);
2828
}
2929

0 commit comments

Comments
 (0)