Fix: Download of user files
This commit is contained in:
parent
bc1d88d324
commit
ab25b149c5
@ -88,10 +88,11 @@ if ($id > 0 || ! empty($ref))
|
|||||||
{
|
{
|
||||||
$result = $object->fetch($id, $ref);
|
$result = $object->fetch($id, $ref);
|
||||||
|
|
||||||
$upload_dir = $conf->user->multidir_output[$object->entity] . "/" . $object->id ;
|
$entitytouseforuserdir = $object->entity;
|
||||||
|
if (empty($entitytouseforuserdir)) $entitytouseforuserdir=1;
|
||||||
|
$upload_dir = $conf->user->multidir_output[$entitytouseforuserdir] . "/" . $object->id ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
@ -159,8 +160,8 @@ if ($object->id)
|
|||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
$modulepart = 'societe';
|
$modulepart = 'user';
|
||||||
$permission = $user->rights->societe->creer;
|
$permission = $user->rights->user->user->creer;
|
||||||
$param = '&id=' . $object->id;
|
$param = '&id=' . $object->id;
|
||||||
include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php';
|
include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user