mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
files with owner_id == 0 need to be readable for all useres!
This commit is contained in:
parent
1fba46456d
commit
5c8e62b4ce
@ -712,7 +712,8 @@
|
||||
$user_id = $GLOBALS['egw_info']['user']['account_id'];
|
||||
//echo "user=$user_id, ";
|
||||
/* They always have access to their own files */
|
||||
if ($owner_id == $user_id)
|
||||
/* Files with owner_id = 0 are created by apps, and need at least to be readable */
|
||||
if ($owner_id == $user_id || ($owner_id == 0 && $data['operation'] == EGW_ACL_READ))
|
||||
{
|
||||
return True;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user