Compare commits

...

5 Commits

Author SHA1 Message Date
Anne-Catherine
81353adb05 Update core/config.class.inc.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
2026-10-16 12:15:41 +02:00
Anne-Cath
43a66b015c N°10202 - Third-party tool interface; inline image unreadable due to integration issues - change comment 2026-10-16 11:54:02 +02:00
Anne-Catherine
7eb6509fd4 Update core/config.class.inc.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
2026-10-16 11:46:53 +02:00
Anne-Catherine
023d93b354 Update pages/ajax.document.php
Co-authored-by: Molkobain <lajarige.guillaume@free.fr>
2026-10-16 11:46:38 +02:00
Anne-Cath
b8ec35eb3d N°10202 - Third-party tool interface; inline image unreadable due to integration issues 2026-10-15 16:16:37 +02:00
2 changed files with 11 additions and 1 deletions

View File

@@ -1739,6 +1739,14 @@ class Config
'source_of_value' => '',
'show_in_conf_sample' => false,
],
'security.disable_mandatory_authentication_for_inline_images' => [
'type' => 'bool',
'description' => 'If true then image access does not require user authentication, provided the image\'s secret is valid. Note that setting this to true gives a less secure access to inline images!',
'default' => false,
'value' => false,
'source_of_value' => '',
'show_in_conf_sample' => false,
],
'security.disable_joined_classes_filter' => [
'type' => 'bool',
'description' => 'If true, scope filters aren\'t applied to joined classes or union classes not directly listed in the SELECT clause.',

View File

@@ -64,7 +64,9 @@ try {
break;
case 'download_inlineimage':
LoginWebPage::DoLoginEx();
if (MetaModel::GetConfig()->Get('security.disable_mandatory_authentication_for_inline_images') === false) {
LoginWebPage::DoLoginEx();
}
$id = utils::ReadParam('id', '');
$sSecret = utils::ReadParam('s', '');
$iCacheSec = 31556926; // One year ahead: an inline image cannot change