diff --git a/app/Http/Controllers/TemplateController.php b/app/Http/Controllers/TemplateController.php index 04a1b2acc..1137a5da8 100644 --- a/app/Http/Controllers/TemplateController.php +++ b/app/Http/Controllers/TemplateController.php @@ -35,7 +35,7 @@ public function index(Request $request) } }) ->when(!Auth::check(), function ($query) { - return $query->publiclyListed(); + $query->where('publicly_listed', true); }) ->orderByDesc('created_at') ->get();