dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] [RECTIFICATION]Fractionnalisation du fichier "document.ph


From: Pierre Morin
Subject: [Dolibarr-dev] [RECTIFICATION]Fractionnalisation du fichier "document.php"
Date: Tue, 06 Apr 2010 15:23:03 +0200

Une erreur s'est glissée dans le code que j'ai envoyé dans le mail, le code proposé dans le premier "cadre" de code n'était pas bon et doit être remplacé par le code suivant :

+-CODE------------------------------------------------------------------------------------------------------------------------+
/ //General wrapping
if(isset($modulepart))
{
$subPermConstName = strtoupper($modulepart).'_SUBPERM_FOR_DOCUMENTS';
$subPerm = $conf->global->$subPermConstName;
if(($user->rights->$modulepart->lire) || ($user->rights->$modulepart->download) || (isset($subPerm) && (($user->rights->$modulepart->$subPerm->lire) || ($user->rights->$modulepart->$subPerm->download))) )
{
$accessallowed=1;
}
$original_file=$conf->$modulepart->dir_output.'/'.$original_file;
$sqlProtectConstName = strtoupper($modulepart).'_SQLPROTECTAGAINSTEXTERNALS_FOR_DOCUMENTS';
$sqlprotectagainstexternals = $conf->global->$sqlProtectConstName;
}
+---------------------------------------------------------------------------------------------------------------------------------+

-- 
Pierre Morin
address@hidden 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]