mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-16 14:31:29 +01:00
Code comment
This commit is contained in:
@@ -2638,7 +2638,8 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
|
|||||||
}
|
}
|
||||||
$original_file = $conf->user->dir_output.'/'.$original_file;
|
$original_file = $conf->user->dir_output.'/'.$original_file;
|
||||||
} elseif ($modulepart == 'userphotopublic' && !empty($conf->user->dir_output)) {
|
} 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;
|
$accessok = false;
|
||||||
$reg = array();
|
$reg = array();
|
||||||
if (preg_match('/^(\d+)\/photos\//', $original_file, $reg)) {
|
if (preg_match('/^(\d+)\/photos\//', $original_file, $reg)) {
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ if (isset($_GET["modulepart"])) {
|
|||||||
if ($_GET["modulepart"] == 'medias') {
|
if ($_GET["modulepart"] == 'medias') {
|
||||||
$needlogin = 0;
|
$needlogin = 0;
|
||||||
}
|
}
|
||||||
// User photo
|
// User photo when user has made its profile public (for virtual credi card)
|
||||||
if ($_GET["modulepart"] == 'userphotopublic') {
|
if ($_GET["modulepart"] == 'userphotopublic') {
|
||||||
$needlogin = 0;
|
$needlogin = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user