This commit is contained in:
Laurent Destailleur 2022-03-24 11:49:34 +01:00
parent 6438a99960
commit 6c28426b3a

View File

@ -113,7 +113,7 @@ if (is_numeric($entity)) {
* @ignore
* @return void
*/
function llxHeader()
function llxHeader()sql
{
}
/**
@ -237,8 +237,8 @@ if (empty($modulepart)) {
// When logged in a different entity, medias cannot be accessed because $conf->$module->multidir_output
// is not set on the requested entity, but they are public documents, so reset entity
if ($modulepart === 'medias' && $entity != $conf->entity) {
$conf->entity = $entity;
$conf->setValues($db);
$conf->entity = $entity;
$conf->setValues($db);
}
$check_access = dol_check_secure_access_document($modulepart, $original_file, $entity, $user, $refname);