file_access hook for attachments

This commit is contained in:
Ralf Becker 2008-10-07 09:03:01 +00:00
parent e720c3f4ac
commit 9fd543d8c6
2 changed files with 13 additions and 0 deletions

View File

@ -1738,6 +1738,18 @@ class calendar_bo
return $result;
}
/**
* Check access to the projects file store
*
* @param int $id id of entry
* @param int $check EGW_ACL_READ for read and EGW_ACL_EDIT for write or delete access
* @return boolean true if access is granted or false otherwise
*/
function file_access($id,$check,$rel_path)
{
return $this->check_perms($check,$id);
}
/**
* sets the default prefs, if they are not already set (on a per pref. basis)
*

View File

@ -37,6 +37,7 @@ class calendar_hooks
'add_app' => 'link_app',
'add_id' => 'link_id',
'add_popup' => '750x400',
'file_access' => 'calendar.calendar_bo.file_access',
);
}