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:
Marcos García de La Fuente 2017-03-30 15:21:20 +02:00
parent 90a90e1a3c
commit cd5b074a48

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";