Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jegelstaff committed Nov 5, 2024
1 parent 94dc4bd commit b1ad227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/formulize/class/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ function getPerGroupFilterWhereClause($fid, $formAlias="", $groupids=false) {
// ensure filterSettings[0] is an array of element handles! (will be stored as IDs but we need the handles for lower code to work)
if(!isMetaDataField($filterSettings[0][$i]) AND $elementObject = $element_handler->get($filterSettings[0][$i])) {
$filterSettings[0][$i] = $elementObject->getVar('ele_handle');
} else {
} elseif(!isMetaDataField($filterSettings[0][$i])) {
print "Formulize Error: a per-group permission filter on form $fid is referencing an element that does not exist. Was it renamed or deleted?<br>";
exit(); // can't invoke intended per-group permissions, must fail out rather than risk showing data user should not have access to :(
}
Expand Down

0 comments on commit b1ad227

Please sign in to comment.