Fix: Ne permettait plus de crer des tiers

This commit is contained in:
Laurent Destailleur 2006-03-11 02:18:26 +00:00
parent 62aa115c17
commit ea1fe8b31b

View File

@ -31,7 +31,10 @@
*/
require("pre.inc.php");
$user->getrights('societe');
$user->getrights('commercial');
$langs->load("companies");
$langs->load("commercial");
$langs->load("bills");
@ -45,8 +48,7 @@ if (! $user->rights->societe->creer)
}
$socid = isset($_GET["socid"])?$_GET["socid"]:'';
if ($socid == '') accessforbidden();
if (! $socid && ($_GET["action"] != 'create' && $_POST["action"] == 'create')) accessforbidden();
// Sécurité accés client
if ($user->societe_id > 0)