Skip to content

Commit bdae85a

Browse files
committed
fix(form): allow redirect to login for private forms as well
1 parent fe1eadd commit bdae85a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front/formdisplay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
}
5454

5555
// If the form has restriced access and user is not logged in, send to login form
56-
if ($form->fields['access_rights'] == PluginFormcreatorForm::ACCESS_RESTRICTED && Session::getLoginUserID() === false) {
56+
if ($form->fields['access_rights'] != PluginFormcreatorForm::ACCESS_PUBLIC && Session::getLoginUserID() === false) {
5757
Session::redirectIfNotLoggedIn();
5858
exit();
5959
}

0 commit comments

Comments
 (0)