From 5c8e62b4ce825a90ce4c84d9408e05b37cce5e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Tue, 4 Oct 2005 22:59:14 +0000 Subject: [PATCH] files with owner_id == 0 need to be readable for all useres! --- phpgwapi/inc/class.vfs_sql.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.vfs_sql.inc.php b/phpgwapi/inc/class.vfs_sql.inc.php index 06ce7eb6d3..2d513bad61 100644 --- a/phpgwapi/inc/class.vfs_sql.inc.php +++ b/phpgwapi/inc/class.vfs_sql.inc.php @@ -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; }