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
|
// Security check
|
||||||
$id = GETPOST("id", 'int');
|
$id = GETPOST("id", 'int');
|
||||||
$socid = 0;
|
|
||||||
if ($user->socid > 0) $socid = $user->socid;
|
if ($user->socid > 0) $socid = $user->socid;
|
||||||
$result = restrictedArea($user, 'ticket', $id, '');
|
$result = restrictedArea($user, 'ticket', $id, '');
|
||||||
|
|
||||||
|
|||||||
@ -115,7 +115,6 @@ if ($id || $track_id || $ref) {
|
|||||||
$url_page_current = DOL_URL_ROOT.'/ticket/card.php';
|
$url_page_current = DOL_URL_ROOT.'/ticket/card.php';
|
||||||
|
|
||||||
// Security check - Protection if external user
|
// Security check - Protection if external user
|
||||||
$socid = 0;
|
|
||||||
if ($user->socid > 0) $socid = $user->socid;
|
if ($user->socid > 0) $socid = $user->socid;
|
||||||
$result = restrictedArea($user, 'ticket', $object->id);
|
$result = restrictedArea($user, 'ticket', $object->id);
|
||||||
|
|
||||||
|
|||||||
@ -61,7 +61,6 @@ $permissiontoadd = $user->rights->ticket->write;
|
|||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$id = GETPOST("id", 'int');
|
$id = GETPOST("id", 'int');
|
||||||
$socid = 0;
|
|
||||||
if ($user->socid > 0) $socid = $user->socid;
|
if ($user->socid > 0) $socid = $user->socid;
|
||||||
$result = restrictedArea($user, 'ticket', $object->id, '');
|
$result = restrictedArea($user, 'ticket', $object->id, '');
|
||||||
|
|
||||||
|
|||||||
@ -80,7 +80,6 @@ $permissiontoadd = $user->rights->ticket->write;
|
|||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$id = GETPOST("id", 'int');
|
$id = GETPOST("id", 'int');
|
||||||
$socid = 0;
|
|
||||||
if ($user->socid > 0) $socid = $user->socid;
|
if ($user->socid > 0) $socid = $user->socid;
|
||||||
$result = restrictedArea($user, 'ticket', $object->id, '');
|
$result = restrictedArea($user, 'ticket', $object->id, '');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user