diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index d7de3e645e..f3e7325794 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -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) * diff --git a/calendar/inc/class.calendar_hooks.inc.php b/calendar/inc/class.calendar_hooks.inc.php index 0f259c3deb..751f21acd8 100644 --- a/calendar/inc/class.calendar_hooks.inc.php +++ b/calendar/inc/class.calendar_hooks.inc.php @@ -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', ); }