Skip to content

Commit

Permalink
fix(condition): ensure form object is loaded
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Sep 24, 2021
1 parent f8347be commit d7c3c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajax/showfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit d7c3c2c

Please sign in to comment.