Fix feature must be hidden (not stable)

This commit is contained in:
Laurent Destailleur 2018-02-12 16:09:22 +01:00
parent 1c9f543fd5
commit a4f48fcfb6
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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
//------