2
0
forked from Wavyzz/dolibarr

Clean menu

This commit is contained in:
Laurent Destailleur
2021-03-19 13:37:43 +01:00
parent ff7f1feaae
commit 8462c4d3d3
2 changed files with 2 additions and 16 deletions

View File

@@ -1886,7 +1886,8 @@ function email_admin_prepare_head()
}
}
if (!empty($user->admin) && (empty($_SESSION['leftmenu']) || $_SESSION['leftmenu'] != 'email_templates')) {
// admin and non admin can view this menu entry, but it is not shown yet when we on user menu "Email templates"
if (empty($_SESSION['leftmenu']) || $_SESSION['leftmenu'] != 'email_templates') {
$head[$h][0] = DOL_URL_ROOT."/admin/mails_senderprofile_list.php";
$head[$h][1] = $langs->trans("EmailSenderProfiles");
$head[$h][2] = 'senderprofiles';