Form visibility closed (#91)

This commit is contained in:
Chirag Chhatrala
2023-02-19 17:41:50 +05:30
committed by GitHub
parent 9137282eba
commit d6930d0dc2
7 changed files with 22 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ class PublicFormController extends Controller
public function show(Request $request, string $slug)
{
$form = Form::whereSlug($slug)->whereVisibility('public')->firstOrFail();
$form = Form::whereSlug($slug)->whereIn('visibility', ['public', 'closed'])->firstOrFail();
if ($form->workspace == null) {
// Workspace deleted
return $this->error([