FIX #3138 - Too much visible thing when access is denied on public pages

This commit is contained in:
Laurent Destailleur 2015-07-04 14:56:43 +02:00
parent 251fedad48
commit d5a4a98c22
12 changed files with 12 additions and 12 deletions

View File

@ -100,7 +100,7 @@ ErrorProdIdAlreadyExist=%s is assigned to another third
ErrorFailedToSendPassword=Failed to send password
ErrorFailedToLoadRSSFile=Fails to get RSS feed. Try to add constant MAIN_SIMPLEXMLLOAD_DEBUG if error messages does not provide enough information.
ErrorPasswordDiffers=Passwords differs, please type them again.
ErrorForbidden=Access denied.<br>You try to access to a page, area or feature without being in an authenticated session or that is not allowed to your user.
ErrorForbidden=Access denied.<br>You try to access to a page, area or feature of a disabled module or without being in an authenticated session or that is not allowed to your user.
ErrorForbidden2=Permission for this login can be defined by your Dolibarr administrator from menu %s->%s.
ErrorForbidden3=It seems that Dolibarr is not used through an authenticated session. Take a look at Dolibarr setup documentation to know how to manage authentications (htaccess, mod_auth or other...).
ErrorNoImagickReadimage=Class Imagick is not found in this PHP. No preview can be available. Administrators can disable this tab from menu Setup - Display.

View File

@ -57,7 +57,7 @@ require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php';
// Security check
if (empty($conf->agenda->enabled)) accessforbidden('',1,1,1);
if (empty($conf->agenda->enabled)) accessforbidden('',0,0,1);
// Not older than
if (! isset($conf->global->MAIN_AGENDA_EXPORT_PAST_DELAY)) $conf->global->MAIN_AGENDA_EXPORT_PAST_DELAY=100; // default limit

View File

@ -42,7 +42,7 @@ require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT .'/don/class/don.class.php';
// Security check
if (empty($conf->don->enabled)) accessforbidden('',1,1,1);
if (empty($conf->don->enabled)) accessforbidden('',0,0,1);
$langs->load("donations");

View File

@ -66,7 +66,7 @@ $langs->load("install");
$langs->load("other");
// Security check
if (empty($conf->adherent->enabled)) accessforbidden('',1,1,1);
if (empty($conf->adherent->enabled)) accessforbidden('',0,0,1);
if (empty($conf->global->MEMBER_ENABLE_PUBLIC))
{

View File

@ -39,7 +39,7 @@ require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
// Security check
if (empty($conf->adherent->enabled)) accessforbidden('',1,1,1);
if (empty($conf->adherent->enabled)) accessforbidden('',0,0,1);
$langs->load("main");

View File

@ -36,7 +36,7 @@ if (is_numeric($entity)) define("DOLENTITY", $entity);
require '../../main.inc.php';
// Security check
if (empty($conf->adherent->enabled)) accessforbidden('',1,1,1);
if (empty($conf->adherent->enabled)) accessforbidden('',0,0,1);
$langs->load("main");

View File

@ -40,7 +40,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
// Security check
if (empty($conf->paybox->enabled)) accessforbidden('',1,1,1);
if (empty($conf->paybox->enabled)) accessforbidden('',0,0,1);
$langs->load("main");
$langs->load("other");

View File

@ -37,7 +37,7 @@ require_once DOL_DOCUMENT_ROOT.'/paybox/lib/paybox.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
// Security check
if (empty($conf->paybox->enabled)) accessforbidden('',1,1,1);
if (empty($conf->paybox->enabled)) accessforbidden('',0,0,1);
$langs->load("main");
$langs->load("other");

View File

@ -37,7 +37,7 @@ require_once DOL_DOCUMENT_ROOT.'/paybox/lib/paybox.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
// Security check
if (empty($conf->paybox->enabled)) accessforbidden('',1,1,1);
if (empty($conf->paybox->enabled)) accessforbidden('',0,0,1);
$langs->load("main");
$langs->load("other");

View File

@ -43,7 +43,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
// Security check
if (empty($conf->paypal->enabled)) accessforbidden('',1,1,1);
if (empty($conf->paypal->enabled)) accessforbidden('',0,0,1);
$langs->load("main");
$langs->load("other");

View File

@ -41,7 +41,7 @@ require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypalfunctions.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
// Security check
if (empty($conf->paypal->enabled)) accessforbidden('',1,1,1);
if (empty($conf->paypal->enabled)) accessforbidden('',0,0,1);
$langs->load("main");
$langs->load("other");

View File

@ -41,7 +41,7 @@ require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypalfunctions.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
// Security check
if (empty($conf->paypal->enabled)) accessforbidden('',1,1,1);
if (empty($conf->paypal->enabled)) accessforbidden('',0,0,1);
$langs->load("main");
$langs->load("other");