diff --git a/htdocs/ticket/agenda.php b/htdocs/ticket/agenda.php index 66cbe8e7290..9a4af31014a 100644 --- a/htdocs/ticket/agenda.php +++ b/htdocs/ticket/agenda.php @@ -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, ''); diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php index cf665e8a470..7decdeadd7b 100644 --- a/htdocs/ticket/card.php +++ b/htdocs/ticket/card.php @@ -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); diff --git a/htdocs/ticket/contact.php b/htdocs/ticket/contact.php index d31469f13f2..093aaf5de1e 100644 --- a/htdocs/ticket/contact.php +++ b/htdocs/ticket/contact.php @@ -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, ''); diff --git a/htdocs/ticket/messaging.php b/htdocs/ticket/messaging.php index 61291836cdb..292fff329ad 100644 --- a/htdocs/ticket/messaging.php +++ b/htdocs/ticket/messaging.php @@ -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, '');