Fix: mise en fonction de la vérification des droits d'accès users, clients et commerciaux
This commit is contained in:
parent
657d2f3f16
commit
e8ae7de9db
@ -34,16 +34,17 @@ require_once(DOL_DOCUMENT_ROOT."/fichinter/fichinter.class.php");
|
|||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
$langs->load("interventions");
|
$langs->load("interventions");
|
||||||
|
|
||||||
|
$sortorder=$_GET["sortorder"]?$_GET["sortorder"]:$_POST["sortorder"];
|
||||||
|
$sortfield=$_GET["sortfield"]?$_GET["sortfield"]:$_POST["sortfield"];
|
||||||
|
$socid=$_GET["socid"]?$_GET["socid"]:$_POST["socid"];
|
||||||
|
$page=$_GET["page"]?$_GET["page"]:$_POST["page"];
|
||||||
|
|
||||||
// Securité
|
// Securité
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
$socid = $user->societe_id ;
|
$socid = $user->societe_id ;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sortorder=$_GET["sortorder"]?$_GET["sortorder"]:$_POST["sortorder"];
|
|
||||||
$sortfield=$_GET["sortfield"]?$_GET["sortfield"]:$_POST["sortfield"];
|
|
||||||
$page=$_GET["page"]?$_GET["page"]:$_POST["page"];
|
|
||||||
|
|
||||||
if (! $sortorder) $sortorder="DESC";
|
if (! $sortorder) $sortorder="DESC";
|
||||||
if (! $sortfield) $sortfield="f.datei";
|
if (! $sortfield) $sortfield="f.datei";
|
||||||
if ($page == -1) { $page = 0 ; }
|
if ($page == -1) { $page = 0 ; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user