<?php /* PROJECTS $Id: projects_tab.files.php,v 1.1.12.1 2007/01/26 15:17:51 pedroix Exp $ */
GLOBAL $AppUI, $project_id, $deny, $canRead, $canEdit, $dPconfig;
require_once( $AppUI->getModuleClass( 'files' ) );
   
$cfObj = new CFileFolder();
global $allowed_folders_ary;
$allowed_folders_ary = $cfObj->getAllowedRecords($AppUI->user_id);
global $denied_folders_ary;
$denied_folders_ary = $cfObj->getDeniedRecords($AppUI->user_id);

if ( count( $allowed_folders_ary ) < $cfObj->countFolders() ) {
$limited = true;
}
if (!$limited) {
$canEdit = true;
} elseif ($limited AND array_key_exists($folder, $allowed_folders_ary)) {
$canEdit = true;
} else {
$canEdit = false;
}
$showProject = false;
require( dPgetConfig('root_dir') . '/modules/files/folders_table.php' );
?>
