mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Ne permettait plus de crer des tiers
This commit is contained in:
parent
62aa115c17
commit
ea1fe8b31b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user