fix home-directories where created with wrong permissions, as Vfs::$is_root was wrongly evaluated

This commit is contained in:
Ralf Becker 2021-03-15 11:41:53 +02:00
parent 0b91532bf6
commit 2aff05757e

View File

@ -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
}