Merge pull request #6622 from marcosgdf/bug-6505

FIX #6621 Documents tab shows greyed out upload form even if the option to show actions not available is disabled
This commit is contained in:
Laurent Destailleur 2017-03-31 19:22:49 +02:00 committed by GitHub
commit 2164d93f36

View File

@ -89,6 +89,11 @@ class FormFile
}
else
{
//If there is no permission and the option to hide unauthorized actions is enabled, then nothing is printed
if (!$perm && !empty($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED)) {
return 1;
}
$maxlength=$size;
$out = "\n\n<!-- Start form attach new file -->\n";