Skip to content

Commit

Permalink
fix(form): allow admins to testforms
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Sep 21, 2021
1 parent 1cb5f34 commit e3462d5
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 (!$form->getFromDBByCrit($criteria)) {
if (!Session::haveRight('entity', UPDATE) && !$form->getFromDBByCrit($criteria)) {
http_response_code(403);
exit();
}
Expand Down

0 comments on commit e3462d5

Please sign in to comment.