mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix ticket module : security check would prevent automatic fill of thirdparty fields when creating a ticket from thirdparty card.
This commit is contained in:
parent
66287d645e
commit
76b0dee58a
|
|
@ -80,7 +80,6 @@ if (!$action) {
|
|||
|
||||
// Security check
|
||||
$id = GETPOST("id", 'int');
|
||||
$socid = 0;
|
||||
if ($user->socid > 0) $socid = $user->socid;
|
||||
$result = restrictedArea($user, 'ticket', $id, '');
|
||||
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@ if ($id || $track_id || $ref) {
|
|||
$url_page_current = DOL_URL_ROOT.'/ticket/card.php';
|
||||
|
||||
// Security check - Protection if external user
|
||||
$socid = 0;
|
||||
if ($user->socid > 0) $socid = $user->socid;
|
||||
$result = restrictedArea($user, 'ticket', $object->id);
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ $permissiontoadd = $user->rights->ticket->write;
|
|||
|
||||
// Security check
|
||||
$id = GETPOST("id", 'int');
|
||||
$socid = 0;
|
||||
if ($user->socid > 0) $socid = $user->socid;
|
||||
$result = restrictedArea($user, 'ticket', $object->id, '');
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ $permissiontoadd = $user->rights->ticket->write;
|
|||
|
||||
// Security check
|
||||
$id = GETPOST("id", 'int');
|
||||
$socid = 0;
|
||||
if ($user->socid > 0) $socid = $user->socid;
|
||||
$result = restrictedArea($user, 'ticket', $object->id, '');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user