2
0
forked from Wavyzz/dolibarr

Fix remove use of captcha on backoffice for ticket creation

This commit is contained in:
Laurent Destailleur
2021-06-05 02:18:45 +02:00
parent b77f2be2e1
commit b6ba1de3b3
2 changed files with 3 additions and 2 deletions

View File

@@ -259,7 +259,7 @@ class FormTicket
$doleditor->Create();
print '</td></tr>';
if (!empty($conf->global->MAIN_SECURITY_ENABLECAPTCHA)) {
if ($public && !empty($conf->global->MAIN_SECURITY_ENABLECAPTCHA)) {
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
print '<tr><td class="titlefield"><label for="email"><span class="fieldrequired">'.$langs->trans("SecurityCode").'</span></label></td><td>';
print '<span class="span-icon-security inline-block">';