/[dolibarr]/dolibarr/htdocs/soc.php
ViewVC logotype

Diff of /dolibarr/htdocs/soc.php

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

revision 1.126 by eldy, Tue Sep 20 20:33:26 2005 UTC revision 1.127 by eldy, Wed Sep 21 20:28:36 2005 UTC
# Line 33  require("pre.inc.php"); Line 33  require("pre.inc.php");
33  $user->getrights('societe');  $user->getrights('societe');
34  $langs->load("companies");  $langs->load("companies");
35    
36    if (! $user->rights->societe->creer)
37    {
38        if ($_GET["action"] == 'create' || $_POST["action"] == 'create')
39        {
40            accessforbidden();
41        }
42    }
43    
44  /*  // Sécurité accés client
  * Sécurité accés client  
  */  
45  if ($user->societe_id > 0)  if ($user->societe_id > 0)
46  {  {
47    $_GET["action"] = '';    $_GET["action"] = '';
# Line 46  if ($user->societe_id > 0) Line 51  if ($user->societe_id > 0)
51    
52  $soc = new Societe($db);  $soc = new Societe($db);
53    
54    
55    
56  /*  /*
57   * Actions   * Actions
58   */   */

Legend:
Removed from v.1.126  
changed lines
  Added in v.1.127

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