39 |
include_once ("check_priv.php"); |
include_once ("check_priv.php"); |
40 |
$cn=DbConnect($_SESSION['g_dossier']); |
$cn=DbConnect($_SESSION['g_dossier']); |
41 |
// Get The priv on the selected folder |
// Get The priv on the selected folder |
42 |
if ( $User->CheckAction(FICHE_READ) == 0 ){ |
if ( $User->CheckAction($cn,FICHE_READ) == 0 ){ |
43 |
/* Cannot Access */ |
/* Cannot Access */ |
44 |
echo '<h2 class="error"> Vous n\' avez pas accès</h2>'; |
echo '<h2 class="error"> Vous n\' avez pas accès</h2>'; |
45 |
return; |
return; |