7 $field =& $table->getField(
'file');
8 $app = Dataface_Application::getInstance();
9 if ( @$app->_conf[
'modules_Email'] ){
10 $conf = $app->_conf[
'modules_Email'];
11 if ( @$conf[
'attachments'] ){
12 $field[
'savepath'] = $conf[
'attachments'];
15 if ( @$conf[
'attachments_url']){
16 $field[
'url'] = $conf[
'attachments_url'];
20 $savepath = $field[
'savepath'];
22 if ( !is_dir($savepath) or !is_writable($savepath) ){
24 $field[
'widget'][
'type'] =
'hidden';
45 $dummy =
new Dataface_Record(
'dataface__version', array());
46 if ( $dummy->checkPermission(
'email') ){
59 return Dataface_PermissionsTool::NO_ACCESS();