getAccessMode($user) < M_READWRITE)
//die("access denied");
if(!$folder = getFolder($folderid)) {
$GLOBALS['phpgw']->redirect_link('out/out.ViewFolder.php?error=accesso denegado!');
}
if ($folder->getAccessMode($user) < M_READWRITE)
$GLOBALS['phpgw']->redirect_link('out/out.ViewFolder.php?error=accesso denegado!');
printHTMLHead( getMLText("folder_title", array("foldername" => $folder->getName()) ) );
?>
getName());
printStartBox(getMLText("add_document"));
?>
NOTA: El documento hereda el permiso correspondiente de la carpeta que lo contiene