From 6445189eb44be96696f4b04ecd90d499304bb977 Mon Sep 17 00:00:00 2001 From: HENRY Florian Date: Thu, 26 Oct 2023 12:37:47 +0200 Subject: [PATCH] fix: document linked in asset module permission (#26357) --- htdocs/asset/document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/asset/document.php b/htdocs/asset/document.php index 96b222b26c1..be4aa3b1557 100644 --- a/htdocs/asset/document.php +++ b/htdocs/asset/document.php @@ -72,7 +72,7 @@ if ($id > 0 || !empty($ref)) { $upload_dir = $conf->asset->multidir_output[$object->entity ? $object->entity : $conf->entity]."/".get_exdir(0, 0, 0, 1, $object); } -$permissiontoadd = $user->rights->asset->asset->write; // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles.inc.php +$permissiontoadd = $user->rights->asset->write; // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles.inc.php // Security check (enable the most restrictive one) if ($user->socid > 0) accessforbidden();