Ajout du control du SuperAdministrateur

This commit is contained in:
Michael RICOIS 2009-09-10 08:44:53 +00:00
parent bc00912f83
commit a03822865d

View File

@ -281,7 +281,7 @@ if (preg_match('/SURVLISTE/i', $_SESSION['tabInfo']['droits']))
<?php
// Administration
if ($_SESSION['tabInfo']['profil']=='Administrateur' && $_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats')
if ( ($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur') && $_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats')
{
?>
<a href="/?page=administration&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Administration</a>
@ -289,7 +289,7 @@ if ($_SESSION['tabInfo']['profil']=='Administrateur' && $_SESSION['tabInfo']['lo
}
// Statistiques
if ($_SESSION['tabInfo']['profil']=='Administrateur' && $_SESSION['tabInfo']['login']=='ylenaour' || $_SESSION['tabInfo']['login']=='mheitz' || $_SESSION['tabInfo']['login']=='jmartory' || $_SESSION['tabInfo']['login']=='reunicastats' )
if (($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur' ) && $_SESSION['tabInfo']['login']=='ylenaour' || $_SESSION['tabInfo']['login']=='mheitz' || $_SESSION['tabInfo']['login']=='jmartory' || $_SESSION['tabInfo']['login']=='reunicastats' )
{
?>
<a href="/?page=stats&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Statistiques</a>