mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 09:02:59 +01:00
Fix remove use of captcha on backoffice for ticket creation
This commit is contained in:
@@ -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">';
|
||||
|
||||
@@ -53,6 +53,7 @@ $ref = GETPOST('ref', 'alpha');
|
||||
$projectid = GETPOST('projectid', 'int');
|
||||
$cancel = GETPOST('cancel', 'alpha');
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
$backtopage = GETPOST('$backtopage', 'alpha');
|
||||
|
||||
$notifyTiers = GETPOST("notify_tiers_at_create", 'alpha');
|
||||
|
||||
@@ -152,7 +153,7 @@ if (empty($reshook)) {
|
||||
}
|
||||
|
||||
// Action to add an action (not a message)
|
||||
if (GETPOST('add', 'alpha') && $user->rights->ticket->write) {
|
||||
if (GETPOST('add', 'alpha') && !empty($user->rights->ticket->write)) {
|
||||
$error = 0;
|
||||
|
||||
if (!GETPOST("subject", 'alphanohtml')) {
|
||||
|
||||
Reference in New Issue
Block a user