mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
file_access hook for attachments
This commit is contained in:
parent
9fd543d8c6
commit
338f3f246f
@ -913,6 +913,18 @@ class addressbook_bo extends addressbook_so
|
|||||||
return $result;
|
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
|
* returns info about contacts for calender
|
||||||
*
|
*
|
||||||
|
@ -292,6 +292,7 @@ class addressbook_hooks
|
|||||||
'add_app' => 'link_app',
|
'add_app' => 'link_app',
|
||||||
'add_id' => 'link_id',
|
'add_id' => 'link_id',
|
||||||
'add_popup' => '850x440',
|
'add_popup' => '850x440',
|
||||||
|
'file_access'=> 'addressbook.addressbook_bo.file_access',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user