mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
file_access hook for attachments
This commit is contained in:
parent
e720c3f4ac
commit
9fd543d8c6
@ -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)
|
||||
*
|
||||
|
@ -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',
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user