mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix home-directories where created with wrong permissions, as Vfs::$is_root was wrongly evaluated
This commit is contained in:
parent
0b91532bf6
commit
2aff05757e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user