PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.14
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.14
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
← All changes | app/Services/GlobalSearchService.php +5 -0 6.2.56.2.14 View file →
@@ -3,8 +3,9 @@
3 3 namespace FluentForm\App\Services;
4 4
5 5 use FluentForm\App\Helpers\Helper;
6 6 use FluentForm\App\Models\Form;
7 +use FluentForm\App\Services\Manager\FormManagerService;
7 8
8 9 class GlobalSearchService
9 10 {
10 11
@@ -385,9 +386,13 @@
385 386 ],
386 387 ]);
387 388 }
388 389
390 + $allowedForms = FormManagerService::getUserAllowedFormsScope();
389 391 $forms = Form::where('status', 'published')
392 + ->when(false !== $allowedForms, function ($q) use ($allowedForms) {
393 + $q->whereIn('id', $allowedForms ?: [0]);
394 + })
390 395 ->select(['id', 'title', 'type'])->get();
391 396 if (count($forms) > 0) {
392 397 foreach ($forms as $form) {
393 398 $formSpecificLinks = [