Skip to content

Commit

Permalink
FIX #8762
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 10, 2018
1 parent 8270870 commit 842c616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.formfile.class.php
Expand Up @@ -498,7 +498,7 @@ function showdocuments($modulepart,$modulesubdir,$filedir,$urlsource,$genallowed
$modellist=ModelePDFCards::liste_modeles($this->db);
}
}
elseif ($modulepart == 'agenda')
elseif ($modulepart == 'agenda' || $modulepart == 'actions')
{
if (is_array($genallowed)) $modellist=$genallowed;
else
Expand Down

1 comment on commit 842c616

@fmarcet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @eldy , this is not enough to solve the problem. If we don't want to modify the file ../comm/action/card.php as I did, then we will have to modify the function dol_check_secure_access_document () in the file ../core/lib/files.lib.php.

In this function, for the variable $modulepart the value 'agenda' is not considered, only 'actions' is considered. So we should also add $modulepart == 'actions' || $modulepart == 'agenda'

Please sign in to comment.