Fix menu
This commit is contained in:
parent
df2aa2e2f6
commit
a7989eb893
@ -1731,7 +1731,7 @@ function email_admin_prepare_head()
|
|||||||
$h = 0;
|
$h = 0;
|
||||||
$head = array();
|
$head = array();
|
||||||
|
|
||||||
if ($user->admin && (empty($_SESSION['leftmenu']) || $_SESSION['leftmenu'] != 'email_templates'))
|
if (! empty($user->admin) && (empty($_SESSION['leftmenu']) || $_SESSION['leftmenu'] != 'email_templates'))
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/mails.php";
|
$head[$h][0] = DOL_URL_ROOT."/admin/mails.php";
|
||||||
$head[$h][1] = $langs->trans("OutGoingEmailSetup");
|
$head[$h][1] = $langs->trans("OutGoingEmailSetup");
|
||||||
@ -1752,7 +1752,7 @@ function email_admin_prepare_head()
|
|||||||
$head[$h][2] = 'templates';
|
$head[$h][2] = 'templates';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL >= 1)
|
if ($conf->global->MAIN_FEATURES_LEVEL >= 1 && ! empty($user->admin) && (empty($_SESSION['leftmenu']) || $_SESSION['leftmenu'] != 'email_templates'))
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/mails_senderprofile_list.php";
|
$head[$h][0] = DOL_URL_ROOT."/admin/mails_senderprofile_list.php";
|
||||||
$head[$h][1] = $langs->trans("EmailSenderProfiles");
|
$head[$h][1] = $langs->trans("EmailSenderProfiles");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user