We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5960a8d commit fe1eaddCopy full SHA for fe1eadd
front/formdisplay.php
@@ -52,6 +52,12 @@
52
Html::displayNotFoundError();
53
}
54
55
+ // 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) {
57
+ Session::redirectIfNotLoggedIn();
58
+ exit();
59
+ }
60
+
61
if (!$form->canViewForRequest()) {
62
Html::displayRightError();
63
exit();
0 commit comments