Secu: Protection ecran creation société si droit absent
This commit is contained in:
parent
a3baf4ab4b
commit
229d949952
@ -33,10 +33,15 @@ require("pre.inc.php");
|
|||||||
$user->getrights('societe');
|
$user->getrights('societe');
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
|
||||||
|
if (! $user->rights->societe->creer)
|
||||||
|
{
|
||||||
|
if ($_GET["action"] == 'create' || $_POST["action"] == 'create')
|
||||||
|
{
|
||||||
|
accessforbidden();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
// Sécurité accés client
|
||||||
* Sécurité accés client
|
|
||||||
*/
|
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
$_GET["action"] = '';
|
$_GET["action"] = '';
|
||||||
@ -46,6 +51,8 @@ if ($user->societe_id > 0)
|
|||||||
|
|
||||||
$soc = new Societe($db);
|
$soc = new Societe($db);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user