Fix feature must be hidden (not stable)
This commit is contained in:
parent
1c9f543fd5
commit
a4f48fcfb6
@ -206,7 +206,7 @@ function societe_prepare_head(Societe $object)
|
||||
$h++;
|
||||
}
|
||||
|
||||
if (! empty($conf->website->enabled) && (!empty($user->rights->societe->lire) ))
|
||||
if (! empty($conf->website->enabled) && (! empty($conf->global->WEBSITE_USE_WEBSITE_ACCOUNTS)) && (!empty($user->rights->societe->lire)))
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT.'/societe/website.php?id='.$object->id;
|
||||
$head[$h][1] = $langs->trans("WebSiteAccounts");
|
||||
|
||||
@ -80,7 +80,7 @@ class modWebsite extends DolibarrModules
|
||||
|
||||
// New pages on tabs
|
||||
// -----------------
|
||||
//$this->tabs[] = array('data'=>'thirdparty:+website:WebSites:website:($conf->societe->enabled && $user->rights->societe->lire):/societe/website.php?mainmenu=home&id=__ID__'); // To add a new tab identified by code tabname1
|
||||
//$this->tabs[] = array(); // To add a new tab identified by code tabname1
|
||||
|
||||
// Boxes
|
||||
//------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user