mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
"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:
parent
c42bcee466
commit
c635c11f32
@ -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
|
// which gives him then read AND write access to the file store of the entry
|
||||||
else
|
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!!!'));
|
if (self::DEBUG) error_log(__METHOD__."($url,$check) ".($access?"access granted ($app:$id:$rel_path)":'no access!!!'));
|
||||||
return $access;
|
return $access;
|
||||||
|
Loading…
Reference in New Issue
Block a user