From e3462d5b83b73b4c713ea2f021b8b95922aef3fc Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 21 Sep 2021 10:28:18 +0200 Subject: [PATCH] fix(form): allow admins to testforms Signed-off-by: Thierry Bugier --- ajax/showfields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajax/showfields.php b/ajax/showfields.php index 5066078ed..8cdf3f2d7 100644 --- a/ajax/showfields.php +++ b/ajax/showfields.php @@ -37,7 +37,7 @@ 'is_deleted'=> '0', ]; $form = new PluginFormcreatorForm(); -if (!$form->getFromDBByCrit($criteria)) { +if (!Session::haveRight('entity', UPDATE) && !$form->getFromDBByCrit($criteria)) { http_response_code(403); exit(); }