@@ -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
$result = restrictedArea($user, 'ticket', $object->id);
@@ -61,7 +61,6 @@ $permissiontoadd = $user->rights->ticket->write;
$result = restrictedArea($user, 'ticket', $object->id, '');
@@ -80,7 +80,6 @@ $permissiontoadd = $user->rights->ticket->write;