Code comment

This commit is contained in:
Laurent Destailleur
2023-09-08 22:26:23 +02:00
parent ef3590d659
commit 32f6008425
2 changed files with 3 additions and 2 deletions

View File

@@ -2638,7 +2638,8 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
}
$original_file = $conf->user->dir_output.'/'.$original_file;
} elseif ($modulepart == 'userphotopublic' && !empty($conf->user->dir_output)) {
// Wrapping for users photos that were set to public by their owner (public user photos can be read with the public link and securekey)
// Wrapping for users photos that were set to public (for virtual credit card) by their owner (public user photos can be read
// with the public link and securekey)
$accessok = false;
$reg = array();
if (preg_match('/^(\d+)\/photos\//', $original_file, $reg)) {