Modif permissions
This commit is contained in:
parent
86f1c68629
commit
b816fe936b
@ -31,14 +31,10 @@
|
|||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
if (!$user->rights->societe->lire) accessforbidden();
|
||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
|
||||||
$user->getrights('propale');
|
|
||||||
$user->getrights('fichinter');
|
|
||||||
$user->getrights('commande');
|
|
||||||
$user->getrights('projet');
|
|
||||||
|
|
||||||
|
|
||||||
llxHeader('','Contacts');
|
llxHeader('','Contacts');
|
||||||
|
|
||||||
$sortfield=isset($_GET["sortfield"])?$_GET["sortfield"]:$_POST["sortfield"];
|
$sortfield=isset($_GET["sortfield"])?$_GET["sortfield"]:$_POST["sortfield"];
|
||||||
|
|||||||
@ -29,17 +29,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require_once("./pre.inc.php");
|
require_once("./pre.inc.php");
|
||||||
require_once("../contact.class.php");
|
|
||||||
require_once("../actioncomm.class.php");
|
if (!$user->rights->societe->lire) accessforbidden();
|
||||||
|
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
||||||
require_once("../contrat/contrat.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
$langs->load("contracts");
|
$langs->load("contracts");
|
||||||
|
|
||||||
$user->getrights();
|
|
||||||
|
|
||||||
llxHeader('',$langs->trans('CustomerCard'));
|
llxHeader('',$langs->trans('CustomerCard'));
|
||||||
|
|
||||||
$sortorder=$_GET["sortorder"];
|
$sortorder=$_GET["sortorder"];
|
||||||
|
|||||||
@ -59,7 +59,7 @@ function llxHeader($head = "") {
|
|||||||
$menu->add_submenu(DOL_URL_ROOT."/contact/index.php",$langs->trans("Contacts"));
|
$menu->add_submenu(DOL_URL_ROOT."/contact/index.php",$langs->trans("Contacts"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->commercial->enabled )
|
if ($conf->commercial->enabled && $user->rights->societe->lire)
|
||||||
{
|
{
|
||||||
$langs->load("commercial");
|
$langs->load("commercial");
|
||||||
$menu->add(DOL_URL_ROOT."/comm/index.php",$langs->trans("Commercial"));
|
$menu->add(DOL_URL_ROOT."/comm/index.php",$langs->trans("Commercial"));
|
||||||
@ -74,7 +74,7 @@ function llxHeader($head = "") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->compta->enabled )
|
if ($conf->compta->enabled && $user->rights->societe->lire)
|
||||||
{
|
{
|
||||||
$langs->load("compta");
|
$langs->load("compta");
|
||||||
$menu->add(DOL_URL_ROOT."/compta/index.php", $langs->trans("Accountancy"));
|
$menu->add(DOL_URL_ROOT."/compta/index.php", $langs->trans("Accountancy"));
|
||||||
@ -85,7 +85,7 @@ function llxHeader($head = "") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->fichinter->enabled )
|
if ($conf->fichinter->enabled && $user->rights->ficheinter->lire)
|
||||||
{
|
{
|
||||||
$langs->trans("interventions");
|
$langs->trans("interventions");
|
||||||
$menu->add(DOL_URL_ROOT."/fichinter/index.php", $langs->trans("Interventions"));
|
$menu->add(DOL_URL_ROOT."/fichinter/index.php", $langs->trans("Interventions"));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user