[FIX] Disallow to post messages for guests
* Disallow to post messages if guest forms are disabled
This commit is contained in:
parent
a8a7d2c52f
commit
4a98724fc5
@ -17,6 +17,8 @@ if ($setting->getValue('recaptcha_enabled')) {
|
||||
|
||||
if ($setting->getValue('disable_contactform')) {
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Contactform is currently disabled. Please try again later.', 'TYPE' => 'errormsg');
|
||||
} else if ($setting->getValue('disable_contactform') && !$user->isAuthenticated(false)) {
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Contactform is disabled for guests.', 'TYPE' => 'errormsg');
|
||||
} else {
|
||||
// Check if recaptcha is enabled, process form data if valid
|
||||
if($setting->getValue('recaptcha_enabled') && $_POST["recaptcha_response_field"] && $_POST["recaptcha_response_field"]!=''){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user