mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Sec: Fix security test
This commit is contained in:
@@ -19,20 +19,27 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/compta/clients.php
|
||||
\ingroup compta
|
||||
\brief Page accueil des clients
|
||||
\version $Id$
|
||||
* \file htdocs/compta/clients.php
|
||||
* \ingroup compta
|
||||
* \brief Show list of customers to add an new invoice
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require_once("./pre.inc.php");
|
||||
|
||||
if (! $user->rights->societe->lire)
|
||||
accessforbidden();
|
||||
|
||||
require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
|
||||
|
||||
// Secrutiy check
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
$action = '';
|
||||
$socid = $user->societe_id;
|
||||
}
|
||||
|
||||
if (! $user->rights->facture->lire)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
$langs->load("companies");
|
||||
|
||||
$page=$_GET["page"];
|
||||
@@ -46,19 +53,13 @@ $offset = $conf->liste_limit * $page ;
|
||||
$pageprev = $page - 1;
|
||||
$pagenext = $page + 1;
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader();
|
||||
|
||||
// S<>curit<69> acc<63>s client
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
$action = '';
|
||||
$socid = $user->societe_id;
|
||||
}
|
||||
|
||||
if ($action == 'attribute_prefix')
|
||||
{
|
||||
$societe = new Societe($db, $socid);
|
||||
|
||||
Reference in New Issue
Block a user