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"] = ''; |
51 |
|
|
52 |
$soc = new Societe($db); |
$soc = new Societe($db); |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
/* |
/* |
57 |
* Actions |
* Actions |
58 |
*/ |
*/ |