From cf7872497e4f6c494f1c4b5a74476718bc1579e9 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 15 Jun 2012 13:58:18 +0200 Subject: [PATCH] New: add EXTERNAL_USERS_ARE_AUTHORIZED for bypass security access for external users --- htdocs/comm/mailing/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php index a8064da19f3..0443dfb4620 100644 --- a/htdocs/comm/mailing/fiche.php +++ b/htdocs/comm/mailing/fiche.php @@ -34,7 +34,7 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/extrafields.class.php"); $langs->load("mails"); -if (! $user->rights->mailing->lire || $user->societe_id > 0) accessforbidden(); +if (! $user->rights->mailing->lire || (empty($conf->global->EXTERNAL_USERS_ARE_AUTHORIZED) && $user->societe_id > 0)) accessforbidden(); $id=(GETPOST('mailid','int') ? GETPOST('mailid','int') : GETPOST('id','int')); $action=GETPOST('action','alpha');