"fixed not working file upload after my commit from sunday: vfs & stream-wrapper use posix rights, egw_link::file_access uses EGW_ACL_{EDIT|READ}!"

This commit is contained in:
Ralf Becker 2008-10-20 14:51:19 +00:00
parent c42bcee466
commit c635c11f32

View File

@ -87,7 +87,9 @@ class links_stream_wrapper extends sqlfs_stream_wrapper
// which gives him then read AND write access to the file store of the entry
else
{
$access = egw_link::file_access($app,$id,$check,$rel_path);
// vfs & stream-wrapper use posix rights, egw_link::file_access uses EGW_ACL_{EDIT|READ}!
$required = $check & egw_vfs::WRITABLE ? EGW_ACL_EDIT : EGW_ACL_READ;
$access = egw_link::file_access($app,$id,$required,$rel_path);
}
if (self::DEBUG) error_log(__METHOD__."($url,$check) ".($access?"access granted ($app:$id:$rel_path)":'no access!!!'));
return $access;