/[phpcompta]/phpcompta/html/fiche.php
ViewVC logotype

Diff of /phpcompta/html/fiche.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by sparkyx, Sun Mar 6 15:15:56 2005 UTC revision 1.14 by sparkyx, Mon Mar 7 19:50:22 2005 UTC
# Line 51  include_once("fiche_inc.php"); Line 51  include_once("fiche_inc.php");
51    
52  $cn=DbConnect($_SESSION['g_dossier']);  $cn=DbConnect($_SESSION['g_dossier']);
53    
54    // Security check
55    $read=$User->CheckAction($cn,FICHE_READ);
56    $write=$User->CheckAction($cn,FICHE_WRITE);
57    if ($read+$write == 0 ){
58  // ShowMenuComptaRight($g_dossier,$g_UserProperty);    /* Cannot Access */
59  if ( $User->admin == 0 ) {    NoAccess();
   $read=CheckAction($_SESSION['g_dossier'],$User->id,FICHE_READ);  
   $write=CheckAction($_SESSION['g_dossier'],$User->id,FICHE_WRITE);  
   if ($read+$write == 0 ){  
     /* Cannot Access */  
     NoAccess();  
   }  
 }else {  
   $write=1;  
60  }  }
61    
62  // Creation of a new model of card  // Creation of a new model of card
63  // in the database  // in the database
64  if ( isset($_POST['add_modele'])  and $write != 0) {  if ( isset($_POST['add_modele'])  and $write != 0) {

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26