forked from extern/egroupware
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);
|
$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
|
Vfs::$is_root || // class runs with root rights
|
||||||
!$stat['uid'] && $stat['gid'] && Vfs::$is_admin; // group directory and user is an eGW admin
|
!$stat['uid'] && $stat['gid'] && Vfs::$is_admin; // group directory and user is an eGW admin
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user