From d7c3c2c91f455defe6f60673f3d097cd9db553e2 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Fri, 24 Sep 2021 16:10:56 +0200 Subject: [PATCH] fix(condition): ensure form object is loaded 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 8cdf3f2d7..7114cc90b 100644 --- a/ajax/showfields.php +++ b/ajax/showfields.php @@ -37,7 +37,7 @@ 'is_deleted'=> '0', ]; $form = new PluginFormcreatorForm(); -if (!Session::haveRight('entity', UPDATE) && !$form->getFromDBByCrit($criteria)) { +if (!$form->getFromDBByCrit($criteria) && !Session::haveRight('entity', UPDATE)) { http_response_code(403); exit(); }