file_access hook for attachments

This commit is contained in:
Ralf Becker 2008-10-07 09:05:48 +00:00
parent 9fd543d8c6
commit 338f3f246f
2 changed files with 13 additions and 0 deletions

View File

@ -913,6 +913,18 @@ class addressbook_bo extends addressbook_so
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);
}
/**
* returns info about contacts for calender
*

View File

@ -292,6 +292,7 @@ class addressbook_hooks
'add_app' => 'link_app',
'add_id' => 'link_id',
'add_popup' => '850x440',
'file_access'=> 'addressbook.addressbook_bo.file_access',
);
}