New feature visibility - public/draft (#10)

* New feature visibility - public/draft

* fix bg for dark mode
This commit is contained in:
Chirag
2022-10-16 22:57:14 +05:30
committed by GitHub
parent 5b92ac2633
commit 36e038a23b
12 changed files with 82 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ class AnswerFormRequest extends FormRequest
*/
public function authorize()
{
return !$this->form->is_closed && !$this->form->max_number_of_submissions_reached;
return !$this->form->is_closed && !$this->form->max_number_of_submissions_reached && $this->form->visibility === 'public';
}
/**