fix template api for public list (#237)
This commit is contained in:
parent
9e2bf1c280
commit
6ffe614a0e
|
@ -35,7 +35,7 @@ class TemplateController extends Controller
|
|||
}
|
||||
})
|
||||
->when(!Auth::check(), function ($query) {
|
||||
return $query->publiclyListed();
|
||||
$query->where('publicly_listed', true);
|
||||
})
|
||||
->orderByDesc('created_at')
|
||||
->get();
|
||||
|
|
Loading…
Reference in New Issue