files with owner_id == 0 need to be readable for all useres!

This commit is contained in:
Cornelius Weiß 2005-10-04 22:59:14 +00:00
parent 1fba46456d
commit 5c8e62b4ce

View File

@ -712,7 +712,8 @@
$user_id = $GLOBALS['egw_info']['user']['account_id']; $user_id = $GLOBALS['egw_info']['user']['account_id'];
//echo "user=$user_id, "; //echo "user=$user_id, ";
/* They always have access to their own files */ /* 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; return True;
} }