From 2aff05757e2755b32bf0ac4f6a80d4ae3dc35b77 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Mar 2021 11:41:53 +0200 Subject: [PATCH] fix home-directories where created with wrong permissions, as Vfs::$is_root was wrongly evaluated --- api/src/Vfs/StreamWrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Vfs/StreamWrapper.php b/api/src/Vfs/StreamWrapper.php index 7faed9a9b8..09731c7f94 100644 --- a/api/src/Vfs/StreamWrapper.php +++ b/api/src/Vfs/StreamWrapper.php @@ -857,7 +857,7 @@ class StreamWrapper extends Base implements StreamWrapperIface { $stat = $this->url_stat($path,0); } - return $stat['uid'] == $this->user && // (current) user is the owner + return $stat['uid'] == $this->user || // (current) user is the owner Vfs::$is_root || // class runs with root rights !$stat['uid'] && $stat['gid'] && Vfs::$is_admin; // group directory and user is an eGW admin }