Ajout de restriction pour les commerciaux et les accès sociétés
This commit is contained in:
parent
187267b818
commit
4e588520bd
@ -45,8 +45,16 @@ $data = $stats->getNbByMonthWithPrevYear($year);
|
|||||||
|
|
||||||
if (! is_dir($conf->propal->dir_images)) { mkdir($conf->propal->dir_images); }
|
if (! is_dir($conf->propal->dir_images)) { mkdir($conf->propal->dir_images); }
|
||||||
|
|
||||||
$filename = $conf->propal->dir_images."/nbpropale2year-$year.png";
|
if (!$user->rights->commercial->client->voir || $user->societe_id)
|
||||||
$fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=nbpropale2year-'.$year.'.png';
|
{
|
||||||
|
$filename = $conf->propal->dir_images.'/nbpropale2year-'.$user->id.'-'.$year.'.png';
|
||||||
|
$fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=nbpropale2year-'.$user->id.'-'.$year.'.png';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$filename = $conf->propal->dir_images.'/nbpropale2year-'.$year.'.png';
|
||||||
|
$fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=nbpropale2year'.$year.'.png';
|
||||||
|
}
|
||||||
|
|
||||||
$px = new BarGraph();
|
$px = new BarGraph();
|
||||||
$mesg = $px->isGraphKo();
|
$mesg = $px->isGraphKo();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user