/[dolibarr]/dolibarr/htdocs/telephonie/contrat/stats.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/contrat/stats.php

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

revision 1.4 by rodolphe, Tue Sep 6 15:57:44 2005 UTC revision 1.5 by rodolphe, Wed Sep 7 08:14:35 2005 UTC
# Line 29  llxHeader("","Téléphonie - Contrat"); Line 29  llxHeader("","Téléphonie - Contrat");
29    
30  if ($_GET["id"])  if ($_GET["id"])
31  {  {
32      $client_comm = new Societe($db);
33    $contrat = new TelephonieContrat($db);    $contrat = new TelephonieContrat($db);
34    
35    $result = $contrat->fetch($_GET["id"]);    $result = $contrat->fetch($_GET["id"]);
36      $client_comm->fetch($contrat->client_comm_id, $user);
37    
38    if ( $result == 1 )    if (!$client_comm->perm_read)
39        {
40          print "Lecture non authorisée";
41        }
42      
43      if ( $result && $client_comm->perm_read)
44      {      {
45        if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')        if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')
46          {          {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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